24,446 questions
-5
votes
0
answers
96
views
Opening Google's Antigravity gives [process exited with code 1 (0x00000001)] [closed]
Whenever I Open Antigravity IDE opens successfully but also a terminal show with the editor saying that [process exited with code 1 (0x00000001)] when i close it the program starts normally but its ...
0
votes
0
answers
62
views
Why does my Python script exit without showing any error or output? [closed]
I’ve written a Python script that should print some output or at least show an error if something fails. However, when I run it, it just exits immediately without showing anything.
There’s no ...
1
vote
1
answer
89
views
Why are Grep highlight sequences not read with `pty`?
I was experimenting with creack/pty while learning about pseudo terminals.
I spawned grep and hooked it up with a pseudo terminal device as follows:
package main
import (
"fmt"
&...
0
votes
0
answers
40
views
Import macOS terminal theme programatically
In the terminal's settings screen, I can export and import themes easily using the GUI.
How can I import a previously exported theme programatically?
Advice
2
votes
10
replies
380
views
Visual studio vs gcc
I'm a small-scale C programmer at the moment, and I'm bugged by the question: is Visual Studio worth the annoyance that it is?
I've been programming in C and C++ in Visual Studio Code for a while, and ...
1
vote
0
answers
88
views
Is there a way to clear a line-wrapped text in a GNU Readline prompt?
I have been writing a simple REPL application in C. One of the required features was syntax highlighting so I wrote my own rl_redisplay function that allows me to highlight the test using ANSI escape ...
0
votes
0
answers
58
views
Don't display a Gnuplot graph in a window
Gnuplot 5.4 on a Raspberry Pi. When run from the command line in a graphical interface, the script below (which I've pruned a bit) creates a png. As it does so, a window appears then disappears.
set ...
1
vote
1
answer
32
views
How to prefix a specific series of lines (multiple)?
I have a text file, which has an inconsistent timestamp format, that I would like to standardize. This is in a transcript from an interview; ultimately for textual analysis.
What command could I run ...
0
votes
0
answers
67
views
How to prevent electron app from disappearing from the taskbar in windows when listening to `window-all-closed` event in windows?
Totally as the title says:
I have an electron app ( mainly simple code as a start up track ) and I have normal createWindow function and an event listener to if all the windows are closed, if so quit ...
0
votes
0
answers
68
views
Is there a way to have the timer override the prompt input?
I'm trying to make a terminal quiz that has a timer running in the background while you answer the question, which, once finished, overrides the input if it hasn't been filled.
I've tried putting the ...
2
votes
0
answers
136
views
Double tilde (~) character appears when typing in the R Interactive terminal in VS Code
I am experiencing an issue where typing the tilde (~) character in the R Interactive terminal in Visual Studio Code results in the character being written twice. For example, if I press the ~ key once,...
1
vote
1
answer
142
views
How to change cursor shape depending on Insert or Normal mode when using `set -o vi` in `tmux`? [closed]
I would like to use set -o vi in my terminal.
However, I find myself getting confused on whether I am in insert mode or normal mode, since the cursor does not switch between a vertical line (insert) ...
1
vote
1
answer
73
views
Compiling StefanSchippers/xschem on macOS - cannot find jpeglib.h
I am trying to download and compile xschem on my MacBook M2. I am following the instructions written in the following link:
https://github.com/StefanSchippers/xschem/blob/master/README_MacOS.md
The ...
1
vote
1
answer
593
views
Codex with API key on Macbook not working
I had codex originally authenticate via openAI web. Since i hit my limit i would now want to upgrade to the "pay per use" via api key. After following all the steps on https://github.com/...
0
votes
1
answer
55
views
Why only the netcat server that was run first receives connection if there are 2 netcat servers running on the same hostname and port [closed]
I'm on a debian-based Linux distro and currently testing and learning about some networking stuff.
So I have 3 terminal open, the first 2 I will run this command to set up 2 netcat servers on port ...
-2
votes
1
answer
112
views
How to show timestamp only on Zsh prompt immediately after running a command, not before?
I want to customize my zsh prompt so that when I open the terminal, it shows a normal prompt without a timestamp, like:
ABIR~ ❯
When I type a command (for example, ls), the prompt still shows no ...
-2
votes
2
answers
101
views
Close terminal window opened by .command Python script
I have a Python script. I'd like to double click a file on my desktop (macOS) to run it. I'd like the terminal window opened by running the script to close.
To start, I changed the file extension of ...
0
votes
0
answers
156
views
Can't ssh to remote Ubuntu 24.04 Server via terminal after using VS-Code Remote-SSH to login and how to stop loosing remote connection on VS-Code?
First time using Microsoft Remote-SSH extension in VS-Code on a Ubuntu 24.04 machine to ssh login a remote Ubuntu 24.04 Server. After a login, the remote ssh connection then died within a minute. AI-...
1
vote
1
answer
226
views
Gitlab Web IDE Interactive Terminal not working
I've setup the Gitlab Runner with the following settings -
[session_server]
listen_address = "0.0.0.0:8093"
advertise_address = "winged-poring.projecthorizon.onl:8093"
...
-1
votes
1
answer
200
views
The value of the GITHUB_TOKEN environment variable is being used for authentication [closed]
Following the steps in https://learn.microsoft.com/en-us/training/modules/github-copilot-across-environments/4-git-hub-copilot-for-the-command-line
After installing gh, I tried to run gh copilot ...
0
votes
0
answers
84
views
Delete key not woking in normal model (such as Helix, Zellij) in macOS
I love use terminal editor to developer. now my mac config, my terminal app: Warp, Ghossty, Kitty, Editor: Helix ,terminal session manager: Zellij.
I've recently encountered a problem where the Del ...
-2
votes
2
answers
152
views
How can I debug a terminal program (like vim) with gdb/cgdb?
Background
I am modifying the source code of vim and I need to use a debugger.
Problem
Since vim is a terminal program, it takes over the terminal when it starts. So as soon as I start inside gdb, I'm ...
-1
votes
1
answer
87
views
VSCode terminal cannot import environment variables
I am using Ubuntu + VSCode + Django + venv for developing and I have a trouble while trying to launch django project.
I've done this command one by one in terminal:
source .venv/bin/activate
cd ...
1
vote
0
answers
32
views
Clipper (CP437) Character Display Issue on AlmaLinux 9.6 Minimal Server Terminal [duplicate]
I'm working with an AlmaLinux 9.6 Minimal server that hosts a Clipper-programmed system. This Clipper system uses the CP437 character set.
I've successfully configured client computers to display the ...
0
votes
2
answers
73
views
Git commands not working on window powershell terminal commands like -l, -a showing error in the terminal as well as in vs code
The commands -l and -a are not working in my terminal (window PowerShell)
I tried using ls -a which didn't work then I tried ls --force but didn't get the correct answer that I needed which shows the ...