[GH-ISSUE #222] How to prevent the app clear the screen? #171

Closed
opened 2026-03-04 01:02:35 +03:00 by kerem · 1 comment
Owner

Originally created by @ysmood on GitHub (Jan 11, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/222

I want to draw the app directly after previous shell prompt like below:

$ ./app
  > item
  > item
  > item

how to keep the output of the shell?

Originally created by @ysmood on GitHub (Jan 11, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/222 I want to draw the app directly after previous shell prompt like below: ``` $ ./app > item > item > item ``` how to keep the output of the shell?
kerem closed this issue 2026-03-04 01:02:36 +03:00
Author
Owner

@rivo commented on GitHub (Jan 12, 2019):

I don't think this is possible. To my knowledge, tcell (which tview uses) will only use the entire screen and tcell.Screen.Init() will clear it before drawing anything.

You may head over to tcell to ask if there is any way to limit it to a partial screen. (I don't know of any.)

Let me know if this answers your question.

<!-- gh-comment-id:453772896 --> @rivo commented on GitHub (Jan 12, 2019): I don't think this is possible. To my knowledge, `tcell` (which `tview` uses) will only use the entire screen and [`tcell.Screen.Init()`](https://godoc.org/github.com/gdamore/tcell#Screen) will clear it before drawing anything. You may head over to [`tcell`](https://github.com/gdamore/tcell/) to ask if there is any way to limit it to a partial screen. (I don't know of any.) Let me know if this answers your question.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#171
No description provided.