summaryrefslogtreecommitdiffstats
path: root/ncurses-5.2/doc/html/man/curs_deleteln.3x.html
blob: 62cb0a49098bcf183f6d9e13c049995ec7ac46ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

</PRE>
<H2>NAME</H2><PRE>
       <B>deleteln</B>,  <B>wdeleteln</B>,  <B>insdelln</B>, <B>winsdelln</B>, <B>insertln</B>, <B>win-</B>
       <B>sertln</B> - delete and insert lines in a <B>curses</B> window


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>#include</B> <B>&lt;curses.h&gt;</B>

       <B>int</B> <B>deleteln(void);</B>
       <B>int</B> <B>wdeleteln(WINDOW</B> <B>*win);</B>
       <B>int</B> <B>insdelln(int</B> <B>n);</B>
       <B>int</B> <B>winsdelln(WINDOW</B> <B>*win,</B> <B>int</B> <B>n);</B>
       <B>int</B> <B>insertln(void);</B>
       <B>int</B> <B>winsertln(WINDOW</B> <B>*win);</B>


</PRE>
<H2>DESCRIPTION</H2><PRE>
       The <B>deleteln</B> and <B>wdeleteln</B> routines delete the line  under
       the cursor in the window; all lines below the current line
       are moved up one line.  The bottom line of the  window  is
       cleared.  The cursor position does not change.

       The  <B>insdelln</B>  and  <B>winsdelln</B>  routines,  for  positive <I>n</I>,
       insert <I>n</I> lines into the specified window above the current
       line.   The  <I>n</I>  bottom  lines  are  lost.  For negative <I>n</I>,
       delete <I>n</I> lines (starting with the one under  the  cursor),
       and  move  the remaining lines up.  The bottom <I>n</I> lines are
       cleared.  The current cursor position remains the same.

       The <B>insertln</B> and <B>insertln</B> routines, insert  a  blank  line
       above the current line and the bottom line is lost.


</PRE>
<H2>RETURN VALUE</H2><PRE>
       All routines return the integer <B>ERR</B> upon failure and an <B>OK</B>
       (SVr4 specifies only "an integer value  other  than  <B>ERR</B>")
       upon successful completion.


</PRE>
<H2>PORTABILITY</H2><PRE>
       These  functions are described in the XSI Curses standard,
       Issue 4.  The standard specifies that they return  <B>ERR</B>  on
       failure, but specifies no error conditions.


</PRE>
<H2>NOTES</H2><PRE>
       Note that all but <B>winsdelln</B> may be macros.

       These  routines  do  not require a hardware line delete or
       insert feature in the terminal.  In fact, they  won't  use
       hardware  line  delete/insert  unless <B>idlok(...,</B> <B>TRUE)</B> has
       been set on the current window.


</PRE>
<H2>SEE ALSO</H2><PRE>
       <B><A HREF="ncurses.3x.html">curses(3x)</A></B>




</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>