terminal

Windows Curses Adding Weird Spacing

Windows Curses Adding Weird Spacing Question: I have some python code that uses curses to continuously print "Test Bot." And allowing me to send messages at the same time now its printing "Test Bot." fine but when I try to enter "Test User." there is some weird spacing before it Here’s the code: import curses, …

Total answers: 1

How not to mess terminal up after sys.stdin.read() and subprocess invoking vim?

How not to mess terminal up after sys.stdin.read() and subprocess invoking vim? Question: I want to create interactive mode code like git rebase -i HEAD~6 but for PIPE editing, stdin redirection. another example is vipe of moreutils. To do that, I learn this code below. # Source: https://stackoverflow.com/a/39989442/20307768 import sys, tempfile, os from subprocess import …

Total answers: 1

Cannot run updated file from terminal of VSC, for Python

Cannot run updated file from terminal of VSC, for Python Question: So to make it very simple. If I write print("Hello World") and run it on the RUN icon on top right corner it works perfectly fine. And only then if I type in terminal python hello.py executes again just fine. But if I change …

Total answers: 2

Incomprehensible output of the python program in the Windows Terminal

Incomprehensible output of the python program in the Windows Terminal Question: I wrote a very ordinary python program. Print numbers from 0 to 50. But the work of the program in the Windows Terminal was absolutely incomprehensible to me. Although in the settings there is "Command Prompt" as the default terminal application, at startup .py …

Total answers: 1

he term 'python' is not recognized as the name of a cmdlet

he term 'python' is not recognized as the name of a cmdlet Question: how can i solve this? iam trying run this command in vs code terminal but its keep giving this eror PS C:UsersHesamDesktopcloud> python src/stats.py –chat_json C:UsersHesamDesktopchat exresult.json –output_dir C:UsersHesamDesktopres.png python : The term ‘python’ is not recognized as the name of a …

Total answers: 2

Terminal error from download_bios.py: the following arguments are required: wetpaths

Terminal error from download_bios.py: the following arguments are required: wetpaths Question: I’ve been attempting to download a dataset downloaded off of PapersWithCode and when I run the download program I get the following error message: usage: download_bios.py [-h] [-o OUT] [-r RETRIES] [-p N] wetpaths download_bios.py: error: the following arguments are required: wetpaths and am …

Total answers: 1

python script opening multiple terminals, but only executing command in one

python script opening multiple terminals, but only executing command in one Question: I’d like my script to open 3 terminals and execute different commands in each, but all it does is run an nmap scan in the original terminal and opens 3 blank terminals. import subprocess TARGET_IP_ADDRESS = "IPHERE" terminal_windows = [] for i in …

Total answers: 1