termux-play-store / termux-apps

Source for the Termux build on Google Play.
https://play.google.com/store/apps/details?id=com.termux
Other
84 stars 6 forks source link

Implement terminal CSI reporting of window and cell pixel size #9

Closed fornwall closed 5 months ago

fornwall commented 5 months ago

Implement the following CSI escape sequences from https://invisible-island.net/xterm/ctlseqs/ctlseqs.html:

CSI Ps ; Ps ; Ps t [..] Ps = 1 4 ⇒ Report xterm text area size in pixels. Result is CSI 4 ; height ; width t [..] Ps = 1 6 ⇒ Report xterm character cell size in pixels. Result is CSI 6 ; height ; width t

Also stub android.util.Base64 in terminal tests and removed unused throw statements.

Based on work in https://github.com/termux/termux-app/pull/2973 by @MatanZ - thanks!