deni123
deni123

Reputation: 103

How to clear output in Vte.Terminal?

How to clear all output in Vte.Terminal ?

Upvotes: 1

Views: 376

Answers (5)

user19355475
user19355475

Reputation:

use the os library

import os

os.system('clear')

Upvotes: 1

Guillaume
Guillaume

Reputation: 2916

I'm using

vte.fork_command("clear")

Upvotes: 0

tfga
tfga

Reputation: 61

vte.feed('\033[2J')

For other escape sequences:

Upvotes: 0

Quentin Engles
Quentin Engles

Reputation: 2832

I have been having some problems of my own with Vte so I don't know if I'm the right person to answer.

Have you tried replacing the old terminal with another in the container? It's not clearing, but there will be an empty terminal.

Upvotes: 0

Micah Carrick
Micah Carrick

Reputation: 10197

It would only clear the text visible in the terminal, but, you can run the cls command or tinker with the feed() method and empty spaces.

Upvotes: 0

Related Questions