You are not logged in.

#1 2010-02-21 13:59:05

algorythm
Member
From: /usr/share/zoneinfo/Europe/FIN
Registered: 2009-07-17
Posts: 181

[Solved] Zsh and Konsole - "Clear & Reset"

Whenever I do 'Clear & Reset' with Konsole, Zsh doesn't "refresh" itself and I need to press enter in order to see the "det@Archlinux>" line.

For clarification I can of course do normal commands right after clearing the scrollbar with Konsole but I just don't see the "det@Archlinux>" line.

So there a way to clear the scrollbar/earlier commands _without_ having to press enter afterwards when using Konsole (or Yakuake) and Zsh?

E: screenie:

snapshot3n.png

Last edited by algorythm (2010-04-21 18:55:56)


“Talent you can bloom. Instinct you can polish.”  — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.”  — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.”  — Charles Dubois

Offline

#2 2010-04-21 18:55:44

algorythm
Member
From: /usr/share/zoneinfo/Europe/FIN
Registered: 2009-07-17
Posts: 181

Re: [Solved] Zsh and Konsole - "Clear & Reset"

The solution was xvkbd and xbindkeys together.

Last edited by algorythm (2010-04-21 18:56:04)


“Talent you can bloom. Instinct you can polish.”  — Haikyuu!! (adapted)
“If everybody thought alike, no one would be thinking very much.”  — Walter Lippmann (adapted)
“The important thing is to be able, at any moment, to sacrifice what we are for what we could become.”  — Charles Dubois

Offline

#3 2010-04-21 19:12:08

JohannesSM64
Member
From: Norway
Registered: 2009-10-11
Posts: 623
Website

Re: [Solved] Zsh and Konsole - "Clear & Reset"

You don't need to use this konsole feature.
clear(1) will clear, reset(1) will reset+clear. C-l is a standard zsh key bind to clear the screen. If you want convenient access to reset as well, you can alias r=reset, or use zle:

reset() { command reset; zle redisplay }
zle -N reset                           
bindkey '^A' reset

Cleaner and works in all terminals.

Offline

Board footer

Powered by FluxBB