Sfoglia il codice sorgente

Suppose fake terminal 80x25 if ostream==NULL

git-svn-id: https://klish.googlecode.com/svn/trunk@576 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 12 anni fa
parent
commit
b4222ea0f7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      tinyrl/vt100/vt100.c

+ 2 - 2
tinyrl/vt100/vt100.c

@@ -218,7 +218,7 @@ unsigned int tinyrl_vt100__get_width(const tinyrl_vt100_t *this)
 #endif
 
 	if(!this->ostream)
-		return 0;
+		return 80;
 
 #ifdef TIOCGWINSZ
 	ws.ws_col = 0;
@@ -240,7 +240,7 @@ unsigned int tinyrl_vt100__get_height(const tinyrl_vt100_t *this)
 #endif
 
 	if(!this->ostream)
-		return 0;
+		return 25;
 
 #ifdef TIOCGWINSZ
 	ws.ws_row = 0;