added VT100 save&load cursor support.
This commit is contained in:
		
							
								
								
									
										6
									
								
								st.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								st.c
									
									
									
									
									
								
							@@ -868,6 +868,12 @@ tputc(char c) {
 | 
				
			|||||||
				term.mode &= ~MODE_APPKEYPAD;
 | 
									term.mode &= ~MODE_APPKEYPAD;
 | 
				
			||||||
				term.esc = 0;
 | 
									term.esc = 0;
 | 
				
			||||||
				break;
 | 
									break;
 | 
				
			||||||
 | 
								case '7':
 | 
				
			||||||
 | 
									tcursor(CURSOR_SAVE);
 | 
				
			||||||
 | 
									break;
 | 
				
			||||||
 | 
								case '8':
 | 
				
			||||||
 | 
									tcursor(CURSOR_LOAD);
 | 
				
			||||||
 | 
									break;
 | 
				
			||||||
			default:
 | 
								default:
 | 
				
			||||||
				fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');
 | 
									fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');
 | 
				
			||||||
				term.esc = 0;
 | 
									term.esc = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user