[GRASS-dev] [grass-code P][347] Use termios on systems that have <termios.h>

Glynn Clements glynn at gclements.plus.com
Fri Mar 30 05:31:25 EDT 2007


grass-codep at wald.intevation.org wrote:

> code P item #347, was opened at 2007-03-30 08:34
> Status: Open
> Priority: 3
> Submitted By: Ed Schouten (edschouten)
> Assigned to: Nobody (None)
> Summary: Use termios on systems that have <termios.h> 
> Patch status: None
> Patch type: fix
> GRASS component: gis.m
> GRASS version: 6.2.1
> GRASS CVS checkout date, if applies (YYMMDD): 
> 
> 
> Initial Comment:
> 
> Most modern UNIX-like operating systems support the termios terminal
> interface, including FreeBSD. Next to termios, FreeBSD supports the
> antique sgtty interface as well.
> 
> There are some plans at the FreeBSD camp to remove the sgtty interface
> in the far future. It currently only works when the user is running a
> kernel with the option COMPAT_43TTY. This option is still on by
> default, but may already be disabled sooner.
> 
> The following patch will cause GRASS to use the termios interface on
> systems that support it, allowing people to use GRASS without issues
> on operating systems that only support termios.

Committed to CVS.

FWIW:

grass=> select * from obj_imp where symbol = 'G_intr_char' ;
                              object                              |   symbol    
------------------------------------------------------------------+-------------
 imagery/i.class/OBJ.i686-pc-linux-gnu/curses.o                   | G_intr_char
 imagery/i.ortho.photo/photo.2image/OBJ.i686-pc-linux-gnu/main.o  | G_intr_char
 imagery/i.ortho.photo/photo.2target/OBJ.i686-pc-linux-gnu/main.o | G_intr_char
 imagery/i.points/OBJ.i686-pc-linux-gnu/main.o                    | G_intr_char
 imagery/i.vpoints/OBJ.i686-pc-linux-gnu/main.o                   | G_intr_char

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list