Why does the delwinsecond initscrone return nothing? I thought it endwinwould reset to the state as it was before the call initscr.
delwin
initscr
endwin
use NCurses; my $win = initscr(); addstr( 'AAA' ); nc_refresh(); sleep 2; delwin( $win ); endwin(); ... my $new_win = initscr(); if ! $new_win.defined { endwin(); dd $new_win; # NCurses::WINDOW $new_win = NCurses::WINDOW die "win undefined"; # win undefined } addstr( 'BBB' ); nc_refresh(); sleep 2; delwin( $new_win ); endwin;
, , initscr stdscr ( ). delwin ( SCREEN, ), initscr ( newterm) NULL. , curscr newscr ( , ), Perl, , .
stdscr
SCREEN
newterm
NULL
curscr
newscr
. Differences initscr:
X/Open , initscr :initscr , refresh (. curs_refresh (3x)), endwin.initscr endwin.curses, BSD 4.4, , initscr, , . , , initscr XSI.
X/Open , initscr :
initscr , refresh (. curs_refresh (3x)), endwin.
refresh
initscr endwin.
curses, BSD 4.4, , initscr, , . , , initscr XSI.
Source: https://habr.com/ru/post/1681099/More articles:Spark SQL change number format - scalaHow to set display accuracy in PySpark Dataframe show - pysparkKapt generatestubs - невозможно инициализировать объект с помощью внутреннего конструктора из unit-test - constructorEvaluation of $ LABEL inside an erb element in fixtures - ruby-on-railsUse project link in Debug and Nuget in release - c #How to make a convolution with maxout activation? - pythonLaravel 5.4 using Mail fake with Mail :: queue, Mail :: assertSent not working - emailError predicted with mlr: - rHow do I call object methods from a static method in the ruby class? - ruby | fooobar.comAWS Cognito getSession - amazon-web-servicesAll Articles