Skip to content

Commit

Permalink
shortening check for xfontsel
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlef Groth committed Sep 3, 2024
1 parent 3181c9a commit 555084f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jasspa/macros/unixterm.emf
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,12 @@ set-variable .change-font.xfontsel 0
goto-position "\x90"
!emacro
0 define-macro change-font-check-xfontsel
2 pipe-shell-command "which xfontsel" "*fontsel*"
!if $result
set-variable .change-font.xfontsel 0
!else
!force set-variable #l0 &which "xfontsel"
!if &not &seq #l0 "ERROR"
set-variable .change-font.xfontsel 1
!else
set-variable .change-font.xfontsel 0
!endif
delete-buffer "*fontsel*"
!emacro
define-macro change-font-courier
; check if current font is medium
Expand Down

0 comments on commit 555084f

Please sign in to comment.