CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Text command to clear the TUI ?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By dcp2387

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2015, 05:55
Default Text command to clear the TUI ?
  #1
Member
 
Jim
Join Date: May 2015
Posts: 47
Rep Power: 10
CFDYourself is on a distinguished road
Hi there all,
this is my first thread, I was hoping you could help me with a very simple question:

is there a text command I can type into the text user interface that will clear the window of all the old text ?

Like, in Matlab for example, you have "clear all" - is there something similar in Fluent ?

Thanks,
James
CFDYourself is offline   Reply With Quote

Old   August 29, 2017, 12:01
Default
  #2
Senior Member
 
ali
Join Date: Oct 2009
Posts: 318
Rep Power: 17
alinik is on a distinguished road
Hi.

Did you find a solution?
alinik is offline   Reply With Quote

Old   April 21, 2019, 17:40
Default
  #3
Member
 
Marcin
Join Date: Jun 2016
Posts: 96
Rep Power: 9
destroy is on a distinguished road
any solution?
destroy is offline   Reply With Quote

Old   May 30, 2019, 01:10
Default Scheme Clear Function
  #4
New Member
 
Devin
Join Date: Jun 2016
Posts: 2
Rep Power: 0
dcp2387 is on a distinguished road
I know this is an old thread but it looks like there're still people looking for a solution. Here's what I came up with... it doesn't actually "clear" the console in the same way you would in a command line, but it flushes the window with newlines, it's more aesthetic than anything else, but helps me focus on what I last typed.

Code:
(define (clear)
    (format "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"))
If you want this available in every session, you can add it to your .fluent file, one windows it's located at:

Code:
%HOMEPATH%.fluent
If it doesn't exist, just open it up in a text editor and save that command.

Now you can use
Code:
(clear)
to clear the TUI window.

Hope that helps.
dcp2387 is offline   Reply With Quote

Old   February 21, 2023, 00:52
Default
  #5
New Member
 
Vidya Muthulakshmi M
Join Date: Aug 2020
Posts: 7
Rep Power: 5
Vidzz22 is on a distinguished road
Quote:
Originally Posted by dcp2387 View Post
I know this is an old thread but it looks like there're still people looking for a solution. Here's what I came up with... it doesn't actually "clear" the console in the same way you would in a command line, but it flushes the window with newlines, it's more aesthetic than anything else, but helps me focus on what I last typed.

Code:
(define (clear)
    (format "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"))
If you want this available in every session, you can add it to your .fluent file, one windows it's located at:

Code:
%HOMEPATH%.fluent
If it doesn't exist, just open it up in a text editor and save that command.

Now you can use
Code:
(clear)
to clear the TUI window.

Hope that helps.
Great Thanks a ton for the code.
Vidzz22 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to deselect a pre-selected boundary in Text User Interface (TUI) asal FLUENT 1 October 8, 2017 08:50
Text "reversed flow" in TUI SJSW FLUENT 4 October 2, 2014 10:23
Rounding Values in Post stifelistefan CFX 4 March 5, 2014 08:10
TUI Commands from GUI? Carlos FLUENT 6 May 22, 2013 18:05
Patching with TUI Lovermore FLUENT 1 July 22, 2010 22:28


All times are GMT -4. The time now is 06:44.