|  | @ -440,11 +440,11 @@ tmoveto(int x, int y) { | 
														
													
														
															
																|  |  | void |  |  | void | 
														
													
														
															
																|  |  | twrapcursor(void) { |  |  | twrapcursor(void) { | 
														
													
														
															
																|  |  | int y = term.c.y+1; |  |  | int y = term.c.y+1; | 
														
													
														
															
																|  |  | if(y > term.bot) { |  |  |  | 
														
													
														
															
																|  |  | tmoveto(0, term.bot); |  |  |  | 
														
													
														
															
																|  |  | tscroll(); |  |  |  | 
														
													
														
															
																|  |  | } else |  |  |  | 
														
													
														
															
																|  |  | tmoveto(0, y); |  |  |  | 
														
													
														
															
																|  |  |  |  |  | if(y > term.bot) { | 
														
													
														
															
																|  |  |  |  |  | tmoveto(0, term.bot); | 
														
													
														
															
																|  |  |  |  |  | tscroll(); | 
														
													
														
															
																|  |  |  |  |  | } else | 
														
													
														
															
																|  |  |  |  |  | tmoveto(0, y); | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | void |  |  | void | 
														
													
												
													
														
															
																|  | @ -971,10 +971,10 @@ tputc(char c) { | 
														
													
														
															
																|  |  | break; |  |  | break; | 
														
													
														
															
																|  |  | default: |  |  | default: | 
														
													
														
															
																|  |  | tsetchar(c); |  |  | tsetchar(c); | 
														
													
														
															
																|  |  | if(term.c.x+1 < term.col) { |  |  |  | 
														
													
														
															
																|  |  | tmoveto(term.c.x+1, term.c.y); |  |  |  | 
														
													
														
															
																|  |  | } else if(IS_SET(MODE_WRAP)) |  |  |  | 
														
													
														
															
																|  |  | twrapcursor(); |  |  |  | 
														
													
														
															
																|  |  |  |  |  | if(term.c.x+1 < term.col) { | 
														
													
														
															
																|  |  |  |  |  | tmoveto(term.c.x+1, term.c.y); | 
														
													
														
															
																|  |  |  |  |  | } else if(IS_SET(MODE_WRAP)) | 
														
													
														
															
																|  |  |  |  |  | twrapcursor(); | 
														
													
														
															
																|  |  | break; |  |  | break; | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
														
															
																|  |  | } |  |  | } | 
														
													
												
													
														
															
																|  | 
 |