215 questions
1
vote
2
answers
70
views
How can I handle blocking input and a fixed UI tick rate?
I am building a TUI and need my main loop to handle two things: redraw the UI on a fixed timer (a "tick") and immediately handle user input.
My current loop uses crossterm::event::read(), ...
0
votes
0
answers
75
views
Accepting events in ncurses from user input and other threads while blocking until one is available?
Is there such a thing? Since I heard that ncurses doesn’t support multithreading, I’m currently looking for another way to update the screen from both user input and events sent by other threads. For ...
1
vote
1
answer
197
views
Taiga UI v3 > v4 migration build issues
I did migration from Taiga UI v3 to v4, added some packages (with yarn), updated the code accordingly, resolved all other errors after running the (angular) project, but there is still this error ...
0
votes
0
answers
16
views
Can ncurses overlay a window on top of the current terminal text and restore the terminal text on exit? [duplicate]
I'd like to have a popup window appear on top of the current terminal text then have the terminal text restored after the program exits. Can ncurses do that? Can it be faked by having ncurses copy ...
0
votes
1
answer
65
views
TUI Python program using the Blessed module only displays correctly in URXVT terminal emulator
I wrote this little chase game using the Blessed module. While writing, I tested it with URXVT. It works exactly how I want in that terminal emulator. However, when I try to run the game in Powershell ...
1
vote
1
answer
85
views
Is there a way to remove the duplication of characters in rataui paragraph input
When trying to implement a simple textbox into my tui project using rataui and when typing every character is duplicated e.g. if I type "h" it shows "hh". I want it to be able to ...
0
votes
1
answer
172
views
Helix vscode-langservers-extracted not working
I have a project that's using eslint, but when I open it in Helix, the linting does not work.
1
vote
0
answers
822
views
How to avoid improper view updates with Bubble Tea TUI
I have been working on adding a TUI to a Golang CLI application I use which can be found here. The main problem I am hitting is that whenever I start moving over the options for the suggestions to ...
1
vote
2
answers
305
views
Piping the final output of a ratatui rust app while still showing the TUI application
I built a small rust TUI application using the ratatui library. It walks the user through building a sentence and when the app closes and the terminal window is restored it prints the resulting phrase ...
0
votes
1
answer
215
views
Questions about Toast UI Grid
First of all, I ask for your understanding that I am not good at English.
I use Toast Ui Grid
if grid cell click => i want get first cell.value
The cell is configured like this.
|board_no|...
4
votes
1
answer
873
views
Crossterm not clearing screen properly
I have a main method that looks like this:
use std::io::stdout;
use crossterm as ct;
use crossterm::terminal as ct_terminal;
pub mod tui;
fn main() -> () {
let user_result: usize = tui::...
1
vote
2
answers
1k
views
Python Textual Widget not refreshing
I am new to the Textual library and I was trying to make widgets to update whenever data changes. This is a simple example of what I've tried:
class TestBody(Static):
data = reactive("")
...
0
votes
1
answer
1k
views
How to fix these parser errors that i am getting for my lazyvim installation on neovim
I have been trying to install the lazyvim config for my neovim and since i am very very new to the feild of TUI i don't have any clue on what's going on with my neovim, To be specific when i run the :...
0
votes
0
answers
46
views
How to enable horizontal scroll on `less` with trackpad?
I want to use my trackpad in macOS to scroll less horizontally. Is there a way to do this?
0
votes
1
answer
98
views
Cannot implement EventHandler pattern in Rust
I am building a TUI application in Rust and I wish to broadcast keypress events for different parts of the application to listen to. Initially, I create a struct that handles the events:
use std::rc::...
0
votes
1
answer
653
views
How to get a multiline input with python Textual framework
I'm using the Textual-framework in Python and I want the user to enter a multiline Text.
However, I cannot find a widget that does the trick.
With the Input widget on can only enter one line. I tried ...
1
vote
0
answers
546
views
Display raw memory contents in GDB TUI
Is there a way to configure a TUI window to display raw memory contents?
I mean instead of viewing the memory with x/20x 0x7fffffffe270 just have a window that displays and automatically updates the ...
0
votes
1
answer
130
views
Center multiple lines of text in console
I am having a problem. I am making a TUI program. Everything is fine except the fact that I don't like the UI. So I am trying to center my texts to make it seem better. But I am not able to no matter ...
0
votes
1
answer
241
views
Passing a struct to tui::widgets::ListItem rather than a string and show the struct item in list
i have this rust tui which pass a list of song title's into a tui.rs crate to show the list in terminal user interface. here which i do is recursively checking the available .mp3 files and adding the ...
1
vote
1
answer
137
views
Inline Printing For Zsh Autosuggestions adding extra space when deleting
I am working to create a zsh script that gives auto completions and I am trying to do inline suggestions using tput and echoing the expected rest of the input. It works fine for when adding a ...
1
vote
0
answers
285
views
Tui Datepicker How to use setDate
I'm using a datepicker inside a modal, but I don't know how to specify a specific date when the modal is opened.
Is there a way to display a specified date when using tui datepicker?
Below is the ...
3
votes
1
answer
126
views
Emulate a taller terminal within GNOME Terminal and pan up and down
The problem:
I need to be able to run TUI programs that do no fit in a 9-line high terminal inside a nine-line terminal by panning up and down.
The set-up:
I have a Raspian computer connected to a 9-...
1
vote
0
answers
143
views
How can I make small circles in a java TUI?
I am making a board game with a simple TUI and I am trying to display the board on the screen. It's kind of like tic-tac-toe, except that what you place one the board are black or white disks. I ...
0
votes
0
answers
457
views
Ansys Fluent TUI command not working properly inside the loop
I am writing a scheme script to automate my simulation process in Ansys Fluent. One of the simulation steps involves the separation of (marked) mesh cells. This separation has to take place at every ...
1
vote
1
answer
936
views
How to show standard output in TUI?
Let's assume we already have a project where there is a main crate which depends on many other crates (some from crates.io and some other local).
And now I want to add a Terminal User Interface to it, ...