Denilson Sá avatar Denilson Sá committed fea7f09

Changing PREVLINE to CURSORUP

Comments (0)

Files changed (1)

 	{
 		if( IS_PRINTING_DOTS )
 			printf( "\n" )
-		printf( "\n" "\n" ESC_PREVLINE ESC_PREVLINE ESC_ERASELINE )
+		#printf( "\n" "\n" ESC_PREVLINE ESC_PREVLINE ESC_ERASELINE )
+		printf( "\n" "\n" ESC_CURSORUP ESC_CURSORUP ESC_ERASELINE )
 	}
 	CURR_COL++
 	IS_PRINTING_DOTS = 1
 	}
 	# Other escape codes, see:
 	# http://en.wikipedia.org/wiki/ANSI_escape_code
-	# http://vt100.net/docs/vt100-ug/chapter3.html#DECSC
 	# http://invisible-island.net/xterm/ctlseqs/ctlseqs.html
 	ESC_NEXTLINE   = "\033[E"
-	ESC_PREVLINE   = "\033[F"
+	ESC_CURSORUP   = "\033[A"
 	ESC_SCROLLUP   = "\033[S"
 	ESC_SCROLLDOWN = "\033[T"
 	ESC_ERASELINE  = "\033[2K"
+	ESC_SAVEPOS    = "\0337"
+	ESC_UNSAVEPOS  = "\0338"
+
+	# I am avoiding these escapes as they are not listed in:
+	# http://vt100.net/docs/vt100-ug/chapter3.html
+	#ESC_PREVLINE   = "\033[F"
 	#ESC_SAVEPOS    = "\033[s"
 	#ESC_UNSAVEPOS  = "\033[u"
-	ESC_SAVEPOS    = "\0337"
-	ESC_UNSAVEPOS  = "\0338"
 }
 
 ############################################################
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.