aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libutil/ansiline.c
Commit message (Collapse)AuthorAgeFilesLines
* Run Nindent on com32/libutil/ansiline.cH. Peter Anvin2009-05-291-20/+19
| | | | | | | | | Automatically reformat com32/libutil/ansiline.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Don't set the autocr flag on the serial console; clean up crapsyslinux-3.81-pre12H. Peter Anvin2009-05-231-9/+3
| | | | | | | | | | | | | libutil would set the autocr flag on the serial console, which really never was any point -- we already do \n -> \r\n conversion explicitly in the serial code. This was always very annoying to deal with if the menu was interrupted. Furthermore, drop completely unnecessary initialization/deinitialization routines that completely duplicated other code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* COM32 libutil: Fix error in flags in console_ansi_std(void)Gene Cumm2009-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ICANON and ECHO were applied to the control flags not local flags. If ICANON or ECHO were applied to a serial port on Linux on the x86 architecture, this would change the serial ports baud rate. From my /usr/include/bits/termios.h (select in-order lines): /* c_cflag bit meaning */ #define B150 0000005 #define B300 0000007 #define B9600 0000015 #define B38400 0000017 /* c_lflag bits */ #define ICANON 0000002 #define ECHO 0000010 The different baud rates are defined here. If someone set the baud rate to 9600 and set ICANON on c_cflag, it should change the baud rate to 38400, dropping communication. Another example is if someone set the baud rate to 150 the set ICANON and ECHO on c_cflag, it should change the baud to 38400. If I am interpreting the rest of the file correctly, a bitmask covering all of the bits used in c_cflag for the baud rate is 0010017. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright yearH. Peter Anvin2008-01-101-1/+1
|
* Remove CVS-era $Id$ tags.H. Peter Anvin2006-08-171-1/+0
|
* Across-the-board stealth whitespace cleanupH. Peter Anvin2006-05-031-6/+5
|
* Utility library which can be compiled either for Linux or for COM32hpa2004-12-011-0/+92