Created
November 22, 2019 19:19
-
-
Save miller45/87762f3657eaa05979af2c1e0413b94e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROCEDURE ADAPTTOMODERNTERMINAL | |
PRIVATE term,lang | |
IF AppIoMode() == "T" | |
lang := getenv("LANG") | |
term := getenv("TERM") | |
IF RAT("UTF-8",lang) > 0 .AND. (term == "xterm" .OR. term =="xterm-256color") | |
//we are in UTF terminal so switch at least to iso output | |
FS_SET("terminal", term) | |
FS_SET ("outmap", "FSchrmap.def", "fsVT100") | |
ENDIF | |
ENDIF | |
RETURN .T. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nach dem Teil wo die ganzen SETS restored werden die prozedur ADAPTTERM via DO ADAPTTERM aufrufen. | |
Dabei muss natürlich der Schnipsel aus adaptterm.prg reinkopiert werden. | |
Dann neukompilieren... | |
Das Programmm muss dann mit: | |
luit -encoding ISO8859-1 ./fscheck -io=t | |
Du musst natürlich statt fscheck dann ibs nehmen. Achja kein newfsterm oder so shit nur so wie oben gezeigt aufrufen... | |
Mit dieser Methode habe z.B. boxcommand und fscheck zum "laufen" gekriegt. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment