mirror of
https://github.com/eddyem/snippets_library.git
synced 2025-12-06 02:35:20 +03:00
fixed bug in term.c with c_iflag
This commit is contained in:
parent
b147fee176
commit
511a83e506
1
TODO
1
TODO
@ -1 +1,2 @@
|
||||
BUG in commandline options: '?' don't work!
|
||||
Add prefixes sl_ to every function for solving further problems
|
||||
|
||||
1
term.c
1
term.c
@ -112,6 +112,7 @@ static int tty_init(TTY_descr *descr){
|
||||
}
|
||||
descr->tty = descr->oldtty;
|
||||
descr->tty.c_lflag = 0; // ~(ICANON | ECHO | ECHOE | ISIG)
|
||||
descr->tty.c_iflag = 0;
|
||||
descr->tty.c_oflag = 0;
|
||||
descr->tty.c_cflag = descr->baudrate|CS8|CREAD|CLOCAL; // 9.6k, 8N1, RW, ignore line ctrl
|
||||
descr->tty.c_cc[VMIN] = 0; // non-canonical mode
|
||||
|
||||
@ -298,6 +298,10 @@ extern const char *__progname;
|
||||
|
||||
void showhelp(int oindex, myoption *options);
|
||||
void parseargs(int *argc, char ***argv, myoption *options);
|
||||
/**
|
||||
* @brief change_helpstring - change standard help header
|
||||
* @param str (i) - new format (MAY consist ONE "%s" for progname)
|
||||
*/
|
||||
void change_helpstring(char *s);
|
||||
bool get_suboption(char *str, mysuboption *opt);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user