The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Refresh terminal after resize or destruction of other window

asked 2013-11-11 18:52:06 +0000

gagou9 gravatar image

Hi !

I start one terminal, then I do stuff in it. After that I start another terminal on the same workspace, I do stuff in it.

When I destroy the second terminal started, it doesn't show me back the "hidden" content of the first terminal.

Is there a way (even manual) to refresh the content of it ?

Debian wheezy, i3 from backports (i3 version 4.6 (2013-08-07, branch "tags/4.6")) and no other WM.

Cheers !

edit retag flag offensive close merge delete

Comments

What terminal emulator are you using? How is the first terminal being "hidden"? What layout are you using with the two terminals (tabbed,tiled etc)?

flylo gravatar imageflylo ( 2013-11-11 19:23:13 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-11-11 19:54:34 +0000

Adaephon gravatar image

updated 2013-11-12 06:29:11 +0000

Some terminal emultors (xterm for example) do not rewrap already printed text if the window is resized. Instead everything outside of the new window is just cut off. This text is then lost and not just hidden.

+--------------+    +-------+    +--------------+
|$ hello       |    |$ hello|    |$ hello       |
|Hello World!  |    |Hello W|    |Hello W       |
|$             | -> |$      | -> |$             |
+--------------+    +-------+    +--------------+

If you want to retain the text you will have to use another terminal emulator. ROXTerm for example really just hides the text and you can read it once more after the window has again the original size (I'm not sure if there is a way to scroll horizontally while the window is smaller). rxvt-unicode wraps each line that is to long, so that you can read everything even after a resize.

ROXTerm:

+--------------+    +-------+    +--------------+
|$ hello       |    |$ hello|    |$ hello       |
|Hello World!  |    |Hello W|    |Hello World!  |
|$             | -> |$      | -> |$             |
+--------------+    +-------+    +--------------+

rxvt-unicode:

+--------------+    +-------+    +--------------+
|$ hello       |    |Hello W|    |$ hello       |
|Hello World!  |    |orld!  |    |Hello World!  |
|$             | -> |$      | -> |$             |
+--------------+    +-------+    +--------------+

See here on how to change the default terminal emulator

edit flag offensive delete link more

Comments

Hi ! Thanks for these tips. Tried both. rxvt-unicode looks great if i find a way to disable the scrollbar and change de default colors. (I like white on black terminals) Cheers!

gagou9 gravatar imagegagou9 ( 2013-12-01 21:04:59 +0000 )edit

For white on black without scrollbar you can start urxvt like this `urxvt +sb -bg black -fg white`. These settings can also be made permanent in `~/.Xdefaults` (on some distributions `~/.Xressources`). For some pointers [have a look at this](https://wiki.archlinux.org/index.php/rxvt-unicode).

Adaephon gravatar imageAdaephon ( 2013-12-02 13:34:18 +0000 )edit

Question Tools

Stats

Asked: 2013-11-11 18:52:06 +0000

Seen: 431 times

Last updated: Nov 12 '13