Hello all.
I do not wish to beard anyone, but... /
Je ne souhaite barber personne, mais...
Since no one answered clearly my question about how to make a text
look typographically the same in a GUI and in a CLI, I took the liberty
of changing lines 223-229 of Argolance's websearch v. 4 to line 223.
Argolance suggested an html solution, mostly unavailable in CLI, unless
we use links or lynx.
FredX came close but did not use the same "txt2" example as I did, and
he criticized my line length. There is a good reason I cut the lines
where I did : readability!
FWIW:
Code: Select all
From (lines 223 to 229)
function ENGINES_INFO () {
if [ -f "$APP_DIR/help_files/websearch_engines_$lng2.txt" ];then
Xdialog --title "WebSearch - $(gettext 'Engines Info')" --left --no-cancel --textbox "/usr/local/websearch/help_files/websearch_engines_$lng2.txt" 30 100
else
Xdialog --title "WebSearch - Engines Info" --left --no-cancel --textbox "/usr/local/websearch/help_files/websearch_engines_en.txt" 30 100
fi
} ; export -f ENGINES_INFO
To (line 223)
function ENGINES_INFO () { vis6 $APP_DIR/help_files/websearch_engines_${LANG:0:2}.txt2 ; } ; export -f ENGINES_INFO
~~~~~~~~~~~~~~~~~
vis6 is a symlink to
#!/bin/ash
# visionner-avec-less6.sh (pour CD-qui-joue.sh)
# (c) musher0, 11 févr. 2016
# Pour le script ps-a-forest.sh
####
# On peut charger dans son éditeur de texte un texte affiché par less
# en tapant la touche 'v' : / Typing the 'v' key, you can load in your
# text editor a text displayed by less.
[ `which joe` ] && export EDITOR=/opt/local/bin/joel.sh || export EDITOR=/usr/local/bin/defaulttexteditor
# Also known to work with less: / Fonctionnent bien avec less aussi :
# export EDITOR=/usr/bin/geany # export EDITOR=/usr/bin/teagtk
#
# export LESSEDIT=%E %f # LESSEDIT fonctionne comme-ci comme-ça.
#
# NOTE -- Leafpad doesn't load any text sent by less. /
# Leafpad ne charge aucun texte à partir de less.
# Pour urxvt
G="g 85x24+280+180";TitreFen="`cat /tmp/TitreFen`"
COLR="fg NavajoWhite1 -bg DarkGreen -bd "#DBD37C" -cr gold"
FNT="fn xft:Monaco:pixelsize=13:antialias=true:autohint=true "
TRNSP="tr -sh 50 -tint SaddleBrown";DIVERS="sb +st +tcw -sbt 14 -bc"
# Pour less
[ "${LANG:0:2}" = "fr" ] && INFO="'q' -> quitter; 'g' -> haut; 'G' -> bas; 'd' -> descendre; 'u' -> monter" || INFO=" 'q' -> quit; 'g' -> top; 'G' -> bottom; 'd' -> down; 'u' -> up"
LessParms="R -C -~ -b 2 -J -w -s -x 3 -z 72 -S"
# Affichage
rxvt -title "$TitreFen" -$FNT -$TRNSP +$DIVERS -$COLR -b 19 -$G &>/dev/null -e less -$LessParms -P " $INFO " -~ "$1"
As I said, this is not intended as an insult to anyone, it is an "I"
statement. Do with the above as you will, answer or not my original
question. But i am plain tired of researching many of the answers to my
questions myself.
I think I'll officially join StackOverflow or the "Unix and Linux Forums".
It may profit me more.
BFN.