c - Linux serial port programming c_cc character configurations -


by referencing source in following link : serial_port_programming_how_to

i found out there c_cc character configurations there. after searching around affections, did not find exact answer this. try comment out each line of these c_cc configurations , found out following line affect output.

newtio.c_cc[veof]     = 4; 

can explain meaning of , possibly rest of these?

thanks

as suggested, manual page termios starting point:

veof

(004, eot, ctrl-d) end-of-file character (eof). more precisely: character causes pending tty buffer sent waiting user program without waiting end-of-line. if first character of line, read(2) in user program returns 0, signifies end-of-file. recognized when icanon set, , not passed input.

in context of given link, 3.1. canonical input processing, op has observed commenting out assignment

newtio.c_cc[veof]     = 4; 

prevents ^d working expected. that, , similar assignments correspond settings 1 might use shell script stty. internally (using termios) set undefined value when assigned 0xff, default 0x00 good.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -