📄 def_shell_mode.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>def_prog_mode</title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><xref type="10" name="defshell"></xref><h4><a name = "tag_000_000"> </a>NAME</h4><blockquote>def_prog_mode, def_shell_mode, reset_prog_mode, reset_shell_mode- save/restore program or shell terminal modes</blockquote><h4><a name = "tag_001_009_776"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="curses.h.html">curses.h</a>>int def_prog_mode(void);int def_shell_mode(void);int reset_prog_mode(void);int reset_shell_mode(void);</code></pre></blockquote><h4><a name = "tag_001_009_777"> </a>DESCRIPTION</h4><blockquote>The<i>def_prog_mode()</i>function saves the current terminal modes as the "program" (in Curses)state for use by<i><a href="reset_prog_mode.html">reset_prog_mode()</a></i>.<p>The<i>def_shell_mode()</i>function saves the current terminal modes as the "shell" (not in Curses)state for use by<i>reset_shell_mode()</i>.<p>The<i><a href="reset_prog_mode.html">reset_prog_mode()</a></i>function restores the terminal to the "program" (in Curses) state.<p>The<i>reset_shell_mode()</i>function restores the terminal to the "shell" (not in Curses) state.<p>These functions affect the mode of the terminal associated with the currentscreen.</blockquote><h4><a name = "tag_001_009_778"> </a>RETURN VALUE</h4><blockquote>Upon successful completion, these functions return OK. Otherwise, they returnERR.</blockquote><h4><a name = "tag_001_009_779"> </a>ERRORS</h4><blockquote>No errors are defined.</blockquote><h4><a name = "tag_001_009_780"> </a>APPLICATION USAGE</h4><blockquote>The<i><a href="initscr.html">initscr()</a></i>function achieves the effect of calling<i>def_shell_mode()</i>to save the prior terminal settings so they can be restored during the call to<i><a href="endwin.html">endwin()</a></i>,and of calling<i>def_prog_mode()</i>to specify an initial definition of the program terminal mode.<p>Applications normally do not need to refer to the shell terminal mode.Applications may find it useful to save and restore the program terminal mode.</blockquote><h4><a name = "tag_001_009_781"> </a>SEE ALSO</h4><blockquote><i><a href="doupdate.html">doupdate()</a></i>,<i><a href="endwin.html">endwin()</a></i>,<i><a href="initscr.html">initscr()</a></i>,<i><a href="curses.h.html"><curses.h></a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -