Jump to content

$VISUAL and $EDITOR environment variables not set or defined editor not found ????


abarbarian

Recommended Posts

securitybreach
1 minute ago, V.T. Eric Layton said:

I use Liberation Mono Bold 14pt (black on white background). I find it easier for old eyes to read.

 

 

You know, they make these things called glasses with lens that allow you to see again.... ;)

  • Haha 1
Link to comment
Share on other sites

Well I installed

 

https://archlinux.org/packages/community/any/ttf-liberation/

 

which has as one of its fonts

 

Quote

usr/share/fonts/liberation/LiberationMono-Bold.ttf

 

so I altered my .Xresources file


 

Quote


!xterm.faceName: DejaVu Sans Mono Book
!xterm.faceSize: 11

 

xterm.faceName: LiberationMono-Bold.ttf
xterm.faceSize: 13

 

 

or


 

Quote


!xterm.faceName: DejaVu Sans Mono Book
!xterm.faceSize: 11

 

xterm.faceName: LiberationMono-Bold
xterm.faceSize: 13

 

 

or


 

Quote


!xterm.faceName: DejaVu Sans Mono Book
!xterm.faceSize: 11

 

xterm.faceName: Liberation Mono Bold
xterm.faceSize: 13

 

 

 

did this after every change and even tried a reboot

 

Quote

xrdb ~/.Xresources

 

an my terminal still looks the same.

 

So what am I doing wrong folks ? 🤔

Edited by abarbarian
Link to comment
Share on other sites

securitybreach

If I remember correctly, some applications use the older ~/.Xdefaults so I just always mirror the file whenever I make a change.

Link to comment
Share on other sites

V.T. Eric Layton
3 hours ago, securitybreach said:

You know, they make these things called glasses with lens that allow you to see again.... ;)

 

WOW! Whoda' thunk it?!

  • Haha 1
Link to comment
Share on other sites

V.T. Eric Layton
2 hours ago, abarbarian said:

So what am I doing wrong folks ? 🤔

 

Couldn't tell you. I've probably only opened Xterm once or twice in my life and both times were probably by accident. ;)

 

Josh'll know...

Link to comment
Share on other sites

securitybreach
1 hour ago, V.T. Eric Layton said:

 

Couldn't tell you. I've probably only opened Xterm once or twice in my life and both times were probably by accident. ;)

 

Josh'll know...

 

Mentioned fix above

  • Confused 1
  • Thanks 1
Link to comment
Share on other sites

7 hours ago, securitybreach said:

Copy ~/.Xresources to ~/.Xdefaults. 

 

Well according to the Arch Wiki .Xresources is the file you need to customise xterm,

 

https://wiki.archlinux.org/index.php/X_resources

 

https://wiki.archlinux.org/index.php/Xterm

 

I have made changes to the .Xresources file like changing the background colour and they have taken and survived reboots. However I can not get the font to change. I have tired one at a time with several examples one taken from a link in the Arch Wiki.Plus I have tried to use the font that I posted earlier in different ways.

 

xterm.faceName: DejaVu Sans Mono Book
xterm.faceSize: 11

 

XTerm*font: -*-terminus-medium-*-*-*-18-*-*-*-*-*-iso10646-1

 

After every change I have followed the Wiki recommendation to do,

 

xrdb ~/.Xresources

 

and have also tried rebooting the pc after making a change.

 

Also if I comment out all of the font variables like so for example the terminal font does not change,

 


!xterm.faceName: DejaVu Sans Mono Book
!xterm.faceSize: 11

 

!xterm.faceName: Liberation Mono Bold
!xterm.faceSize: 14

 

!XTerm*font: -*-terminus-medium-*-*-*-18-*-*-*-*-*-iso10646-1

 

So I am a tad puzzled as to how to change the xterm terminal font. 🤔

 

Oh and I did make a .Xdefaults file and duplicated all the changes as I made them in .Xresources and it made diddly squat difference. Apart from creating extra work.

 

Edited by abarbarian
Link to comment
Share on other sites

NZ3LDIH.png

 

I finally managed to make a change to the xterm font and make it stick.

 

I put this in my ~/.Xresources,

 

xterm*faceName:         Terminus:pixelsize=14

 

and did a ,

 

xrdb ~/.Xresources

 

then opened up a new terminal. As you can see in the screenshot the terminal is bigger and so is the font. I tried this method with a pixelsize of 16/18/ and each time the terminal and font became bigger.

No log outs or reboots or using a ~/.Xdefaults file needed.

I have no idea if the font displayed is a " Terminus " font, I had a look on line and it looks the same as examples but my eyes are getting tired and I can not be certain.

 

I am still left with the puzzle of how to enter a differently named font in th e~/>Xresources file. 🤔

 

 

Link to comment
Share on other sites

securitybreach

Ah ok, it was an xterm specific option in Xresources as I do not have a "faceName" option in mine.

 


urxvt*geometry:                52x20
urxvt*font:xft:source code pro:pixelsize=14:antialias=true
urxvt*boldFont:xft:source code pro:pixelsize=14:antialias=true
urxvt*depth: 32
urxvt*borderless: 1
urxvt*scrollBar:  false
urxvt*scrollBar_right:      false
urxvt*saveLines: 5000
urxvt*tintColor: grey
urxvt*shading: 40 
urxvt*termName: rxvt-256color
URxvt.letterSpace: -1
URxvt.lineSpace: 3
urxvt*cursorBlink:  true
urxvt*cursorUnderline: true
urxvt*cursorColor:  #FFFFFF
URxvt.internalBorder:   0
URxvt.perl-ext-common:  default,matcher,vtwheel,font-size
URxvt.url-launcher:      /usr/bin/chromium
URxvt.matcher.button:   1
URxvt.keysym.C-Up:     font-size:increase
URxvt.keysym.C-Down:   font-size:decrease

*.foreground:   nord4
*.background:   nord0
*.cursorColor:  nord4
*fading: 35
*fadeColor: nord3

*.color0: nord1
*.color1: nord11
*.color2: nord14
*.color3: nord13
*.color4: nord9
*.color5: nord15
*.color6: nord8
*.color7: nord5
*.color8: nord3
*.color9: nord11
*.color10: nord14
*.color11: nord13
*.color12: nord9
*.color13: nord15
*.color14: nord7
*.color15: nord6

!-- Xft settings -- !
Xft.dpi:        100
Xft.antialias:  true
Xft.rgba:       rgb
Xft.hinting:    true
Xft.hinstyle:   full

rofi.font:       source code pro 14
rofi.forebackground: #FFFFFF
rofi.background:     #000000

rofi.opacity:                        80
rofi.width:                          40
rofi.lines:                          15
rofi.columns:                        1
rofi.color-enabled: true
rofi.color-window: #273238, #273238, #1e2529
rofi.color-normal: #273238, #c1c1c1, #273238, #394249, #ffffff
rofi.color-active: #273238, #80cbc4, #273238, #394249, #80cbc4
rofi.color-urgent: #273238, #ff1844, #273238, #394249, #ff1844

rofi.bw:                             1
rofi.location:                       0
rofi.padding:                        5
rofi.yoffset:                        0
rofi.xoffset:                        0
rofi.fixed-num-lines:                false
rofi.terminal:                       urxvtc
rofi.ssh-client:                     ssh
rofi.ssh-command:                    {terminal} -e {ssh-client} {port} {host}
rofi.run-command:                    {cmd}
rofi.run-list-command:               
rofi.run-shell-command:              {terminal} -e {cmd}
rofi.disable-history:                false
rofi.levenshtein-sort:               true
rofi.case-sensitive:                 false
rofi.sidebar-mode:                   false
rofi.lazy-filter-limit:              5000
rofi.eh:                             1
rofi.auto-select:                    false
rofi.parse-hosts:                    false
rofi.kb-primary-paste:               Control+Shift+v,Shift+Insert
rofi.kb-secondary-paste:             Control+v,Insert
rofi.kb-move-front:                  Control+a
rofi.kb-move-end:                    Control+e
rofi.kb-move-word-back:              Alt+b
rofi.kb-move-word-forward:           Alt+f
rofi.kb-move-char-back:              Left,Control+b
rofi.kb-move-char-forward:           Right,Control+f
rofi.kb-remove-word-back:            Control+Alt+h
rofi.kb-remove-word-forward:         Control+Alt+d
rofi.kb-remove-char-forward:         Delete,Control+d
rofi.kb-remove-char-back:            BackSpace,Control+h
rofi.kb-accept-entry:                Control+j,Control+m,Return,KP_Enter
rofi.kb-accept-custom:               Control+Return
rofi.kb-accept-entry-continue:       Shift+Return
rofi.kb-mode-next:                   Shift+Right,Control+Tab
rofi.kb-mode-previous:               Shift+Left,Control+Shift+Tab
rofi.kb-toggle-case-sensitivity:     grave,dead_grave
rofi.kb-delete-entry: Shift+Delete

Link to comment
Share on other sites

51 minutes ago, securitybreach said:

Ah ok, it was an xterm specific option in Xresources as I do not have a "faceName" option in mine.

 

Sort of. The problem is more in how the fonts are named. Anyway I tried your font,

 

xterm*faceName:        xft:source code pro:pixelsize=14:antialias=true

 

An decided it looks crisp and clean and easily readable so have decided to use it.

 

W0053sX.png

 

From left to right, your font at size 14, middle your font size 12, right my font size 14.

 

Thanks for your help. 😎

Link to comment
Share on other sites

securitybreach

Did you notice this in my config? It allows you to increase or decrease font size on the fly using ctrl+up arrow or ctrl-down arrow. I do not know if it works for xterm though

 

URxvt.keysym.C-Up:     font-size:increase
URxvt.keysym.C-Down:   font-size:decrease

 
Link to comment
Share on other sites

11 hours ago, securitybreach said:

Did you notice this in my config? It allows you to increase or decrease font size on the fly using ctrl+up arrow or ctrl-down arrow. I do not know if it works for xterm though

 



URxvt.keysym.C-Up:     font-size:increase
URxvt.keysym.C-Down:   font-size:decrease


 

 

xterm1.jpg

 

Xterm has pop up windows if you ctrl + right/left/middle mouse buttons which allow you to do all sorts. 😎

 

I use Liberation Mono Bold 14pt (black on white background). I find it easier for old eyes to read. @V.T. Eric Layton

 

I would like to try Eric's suggestion. I found a Arch package with it included and installed it but can not work out how to enter the correct name for it in the .Xresources file. 🤔

 

Edited by abarbarian
Link to comment
Share on other sites

Finally figured out how to get Eric's font in me ~/.Xresource file, this is the entry,

 

! Eric's terminal font very neat - the non bold one is cool too.

xterm*faceName:        xft:Liberation Mono:bold:pixelsize=13:antialias=true:hinting=true

!xterm*faceName:        xft:Liberation Mono:pixelsize=13:antialias=true:hinting=true

 

I have to say that the Arch Wiki is as clear as mud on how to change fonts in xterm.Yes there is a lot of information but it is like being  blindfolded and wandering around in a swamp at night  for all the good it does.

For instance there is no mention of the " .Xresources " file on the Xterm wiki page which is strange as that is where you put all your customisations for Xterm as a user. 😎

  • +1 1
Link to comment
Share on other sites

V.T. Eric Layton

Seems that you're doing this the hard way, @abarbarian.

 

When I want to add fonts to my Slackware (or any Linux), I just download the font (TTF) from a reputable website like Font Squirrel, unpack the archive and dump them into /usr/share/fonts/TTF. Once that's done the font choice appears in all my font settings (Xfce manager, Firefox, T-bird, Terminal, etc.)

 

You can find Liberation Mono HERE.

Link to comment
Share on other sites

V.T. Eric Layton

Just out of curiosity, why would you even be using Xterm? It's a masochist's terminal emulator... something I would expect Gentoo fans to be using. There are many other terminal emulators (Xfce Terminal, KDE Konsole, etc.) that are much easier to customize and use.

 

But hey... I'm lazy, so I don't care much for high maintenance type software. ;)

Link to comment
Share on other sites

securitybreach

Yeah, I was thinking the same..xterm is very old and lacking. You're literally the only person I know who actually uses xterm. Xterm is usually used to install another terminal (sort of like how IE was used). 

  • Agree 1
Link to comment
Share on other sites

securitybreach

I use a very simplistic terminal, rxvt-unicode (urxvt). While it is very simplistic and you have to configure it manually via ~/.Xresources, it is very modern and has some cool features:

https://curryncode.com/2019/03/06/rxvt-unicode-features/

 

Plus it has a daemon mode where all terminals are running as a single process. You simply add urxvtd to your startup file (~/.xinintc) amd launch a terminal using urxvt

 

It's a bit more difficult on the setup than others like lxterminal, konsole, etc but its a lot more lightweight. I mean it is a terminal after all, the process shouldn't use any memory really. I have 12 terminals open and it is only using 54mb of memory: 

 

 

Cerberus :: ~ » ps aux | grep urxvtd 
comhack     1406  0.0  0.0  54920 17780 tty1     S    07:34   0:00 urxvtd -q -o -f

Cerberus :: ~ » pmap 1406 | tail -n 1
 total            54924K

 

Link to comment
Share on other sites

6 hours ago, V.T. Eric Layton said:

You can find Liberation Mono HERE.

 

Yeah I already installed it from an Arch package.

 

4 hours ago, securitybreach said:

While it is very simplistic and you have to configure it manually via ~/.Xresources, it is very modern and has some cool features:

 

Yeah you do extra customisations the same way for xterm. An as to the cool features xterm can do all of them too as well as all sorts of other even cooler stuff. Not so sure about the perl stuff though.

 

I can not see the problem with xterm . You install it , alter the prompt in .bashrc, add a couple of things in .Xresources and use it. Where is the difficulty in that ?????

 

https://lukas.zapletalovi.com/2013/07/hidden-gems-of-xterm.html

 

https://invisible-island.net/xterm/manpage/xterm.html

 

😋

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...