Tool to run C program, on Linux, with input in terminal
Tool is for Linux, it allows to run compiled C/C++ program in new terminal window. Text input will work in this terminal window.
Example C++ program:
- #include <stdio.h>
- int main ()
- {
- int c;
- puts ("Enter text. Include a dot ('.') in a sentence to exit:");
- do {
- c=getchar();
- putchar (c);
- } while (c != '.');
- return 0;
- }
Tool props:
- Name: C - run
- Variant for xterm:
- File name: xterm
- Parameters: -hold -e "./{FileNameNoExt}"
- Variant for gnome-terminal:
- File name: gnome-terminal
- Parameters: — bash -c "./{FileNameNoExt}; read -s -n1 -r -p 'Press any key… '; echo"
- Shell command: unchecked
- Initial folder: {FileDir}
- Lexers: C,C++
- Capture output: Ignore
- Encoding: utf_8
- Pattern: (empty)