insline

Aus RAD Studio
Wechseln zu: Navigation, Suche

Nach oben zu conio.h - Index


Header-Datei

conio.h

Kategorie

Konsolen-Ein-/Ausgaberoutinen

Prototyp

void insline(void);

Beschreibung

Fügt eine Leerzeile in das Textfenster ein.

insline fügt an der Cursorposition eine Leerzeile in das Textfenster ein und benutzt hierbei die aktuelle Texthintergrundfarbe. Alle Zeilen unter der neuen Leerzeile werden um eine Zeile nach unten verschoben, sodass die letzte Zeile am unteren Fensterrand nicht mehr sichtbar ist.

Anmerkung:  Verwenden Sie diese Funktion auf keinen Fall in Win32-GUI-Anwendungen.

Rückgabewert

Keiner.

Beispiel



 #include <conio.h>
 int main(void)
 {
     clrscr();
     cprintf("INSLINE inserts an empty line in the text window\r\n");
  cprintf("at the cursor position using the current text\r\n");
     cprintf("background color.  All lines below the empty one\r\n");
     cprintf("move down one line and the bottom line scrolls\r\n");
  cprintf("off the bottom of the window.\r\n");
     cprintf("\r\nPress any key to continue:");
  gotoxy(1, 3);
  getch();
     insline();
     getch();
  return 0;
 }



Portabilität



POSIX Win32 ANSI C ANSI C++

+