15 votes

Gedit bottom panel terminal plugin missing

Another student, in whose appliance the gedit-plugins package was missing, found that the following two commands solved the problem: sudo apt-get install -o Dpkg::Options::="--force-overwrite" gedit-...
10 votes
Accepted

Stopping an infinite loop while running

Yes. To force-exit a running program, press Ctrl + C from your keyboard!
  • 17.4k
9 votes
Accepted

How to quit when running into an infinite loop

Try CTRL-C, that should make your program stop whatever it is currently doing.
  • 118
8 votes
Accepted

Which command is used to clear terminal (output) window?

The shortcut Ctrl + L should do the job either.
  • 17.4k
8 votes

How do I open a Terminal window in gEdit?

The terminal in the bottom of the gedit window is termed as Embedded Terminal. To get it in gedit, Open gedit, click View, enable Bottom Panel. Now click Edit, go to Preferences, then Plugins. ...
  • 3,346
5 votes
Accepted

implicit declaration of function is invalid in C99

Sorry, beginner error: But now if we try to print_name(s) in our main function, we still get an error. And that’s because the compiler reads from top to bottom, in order, so at the time main ...
4 votes

Which command is used to clear terminal (output) window?

If you're using macOS you have to use ⌘ + k instead of the ctrl + k command which was suggested by a few other users :)
4 votes

What's wrong with this code?

This line causes it: for (spaces = height - rows; spaces <= height; --spaces). While spaces is less than height, print a space and make spaces smaller. It is an infinite loop.
  • 1,211
3 votes
Accepted

Can't get out of user's input in Terminal

To kill a program prematurely, use CTRL + C.
3 votes
Accepted

How to list the functions of a library in the terminal?

if you want to "list the functions in a library", you should look at the header file(s) aka .h file(s). if you wanna search for functions in the standard library, you could execute man -f keyword ...
3 votes
Accepted

How to test pset7 queries in the terminal window?

Are you running that in the terminal? (ie, not inside sqlite3)? A common problem is trying to run it at the sqlite3 prompt. ~/pset7/movies/ $ cat 2.sql | sqlite3 movies.db ...
  • 18.4k
2 votes

How to use the 'vim' command to edit a program in the terminal?

Press the key (to make sure you are in Normal mode). Type: :q! . This exits the editor, DISCARDING any changes you have made. Save the file with changes and exit Vim with: :wq :x :xit ...
  • 141
2 votes

Which command is used to clear terminal (output) window?

clear word is used to clear the contents in the terminal window, although it does not literally clear things, scroll up to see the previous things inside the terminal.
  • 3,346
2 votes
Accepted

pset2/Crack - Terminal disconnected after some time of running

At pset3 recover/resize, they introduce the CS50 IDE at cs50.io, which I used. The lab has been unreliable for me, so I used that instead, pulling required files from https://github.com/cs50/labs/tree/...
  • 20.7k
2 votes

I can't access my terminal window on my CS50 IDE page. Please help!

To see the console press F6, to open a new tab in the terminal Alt + T
  • 5,181
2 votes

Can't run debugger

I believe you're using VS Code locally, right? I had no problem using the codespace in the browser, but when I used it in my locally installed VS Code, there was this problem with debug50 in codes ...
1 vote
Accepted

Strange CL output

I have no idea what this code is doing. But that doesn't really matter. You said that the intent is to test the chars in argv[1] to see if they're digits. Well, there's absolutely no code here to do ...
  • 64.7k
1 vote

Vigenere does not output correctly

The floating-point exception typically happens because of a division by 0. You get that because of your risky usage of the remainder operator. I'll let you play with this a little more to figure out ...
  • 17.4k
1 vote
Accepted

Pset2 Initials Failing Check50

check50 gave me problems like this: :( outputs "MB" for "Milo Banana" \ expected output, but not "MB\u0000\n" This means you are printing the M and the B and then the null character that ...
  • 18.4k
1 vote
Accepted

pset3: terminal window problem

This has every indication of being an infinite loop somewhere after the code that takes in the data. Look in any loops that follow. There's also a chance that it's waiting for input without having ...
  • 64.7k
1 vote

Home directory problem

Your username in the Terminal shell is ubuntu. This is true for everyone, regardless of what your Cloud 9 IDE username is. Have you tried typing ls to list the contents of your home directory? It ...
  • 3,036
1 vote
Accepted

Terminal printing characters that look like boxes with random 0's and 1's

When your program outputs something like this, it's likely that you're NOT outputting valid printable char values due to wrong calculations or something. The printable char values are from 32 to 126 ...
  • 17.4k
1 vote

Which command is used to clear terminal (output) window?

If you want the screen to be cleared literally and want to keep the history of the commands too, then better use reset command.
1 vote

How do I open a Terminal window in gEdit?

Kellen - if you are downloading GEdit to use in conjuction with taking the course, you would be better off following the instructions for downloading and setting up the virtual appliance. David & ...
  • 1,317
1 vote
Accepted

How to use the 'vim' command to edit a program in the terminal?

vim (aka vi) is a command-line text editor. You can open up an exiting file or creating a new one by executing vi fileName.extension To start editing your file, you have to hit i from your keyboard ...
  • 17.4k
1 vote

How to use the 'vim' command to edit a program in the terminal?

To exit vim and save your changes, type :x or ZZ The complete Vim help documents are found here: http://vimdoc.sourceforge.net/htmldoc/usr_toc.html
  • 18.4k

Only top scored, non community-wiki answers of a minimum length are eligible