bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NCurses reset_shell_mode


From: Thomas Dickey
Subject: Re: NCurses reset_shell_mode
Date: Tue, 14 Aug 2007 07:36:13 -0400 (EDT)

On Mon, 13 Aug 2007, Rudolf wrote:

Hi,

I have a question regarding ncurses. I'm looking at the code and I'm
searching for reset_shell_mode. I'd like to know what the heck it does
so that the shell mode is reset. I see that it's imported from
somewhere but I've Googled and I can't find out from where.

"man reset_shell_mode" gives (among other stuff):

       The  def_prog_mode  and  def_shell_mode  routines save the
       current terminal modes as the  "program"  (in  curses)  or
       "shell"   (not   in   curses)   state   for   use  by  the
       reset_prog_mode and reset_shell_mode  routines.   This  is
       done  automatically  by  initscr.   There is one such save
       area for each screen context allocated by newterm().

       The reset_prog_mode and reset_shell_mode routines  restore
       the  terminal  to "program" (in curses) or "shell" (out of
       curses) state.  These are  done  automatically  by  endwin
       and,  after  an  endwin, by doupdate, so they normally are
       not called.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]