Click here to Skip to main content
15,881,172 members
Everything / Terminal

Terminal

terminal

Great Reads

by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively
by Chris Maunder
A quick overview and a simple bash script to make your script output a little more lively
by Alejandro Miralles
Introducing contest. The new testing framework for .NET.
by Shun Huang
How to set up Visual Studio Code for Scala development on WSL

Latest Articles

by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively
by Chris Maunder
A quick overview and a simple bash script to make your script output a little more lively
by Shun Huang
How to set up Visual Studio Code for Scala development on WSL
by OwenDavies
Installing a desktop environment and setting up RDP to allow us to connect to our Virtual Machine

All Articles

Sort by Score

Terminal 

7 Apr 2022 by Chris Maunder
A quick overview and a simple Windows CMD script to make your terminal output a little more lively
7 Apr 2022 by Chris Maunder
A quick overview and a simple bash script to make your script output a little more lively
4 Jul 2016 by QuantumPlumber
Try ctrl-Z followed by bg - that will put the current process into the background, and you should get your terminal back.Typing jobs should list your current background jobs. You can bring a job back to the foreground by typing %n where n is the job number listed by the jobs...
28 Mar 2024 by CPallini
You failed to properly initialize playerRow, playerRow variables. Put a breakpoint at movePlayer function in order to see that live.
5 Sep 2014 by Sergey Alexandrovich Kryukov
Big deal… Do it on removable drive, or on some unwanted directory, anything you can play with. :-)It'ssudo rm -r /or, if you really want to do it all without confirmation ("force"), you need to use -f:sudo rm -rf /Please see:...
13 Apr 2019 by CPallini
Quote: so I guess the problem is in my lookup table function. How do I correctly do this ? I find nothing wrong with your scaling table. Of course you have to initilialize it (calling scaling) before calling makeshift. Note you are assigning a float to an unsigned char. I believe your compiled...
21 Feb 2024 by Patrice T
Quote: How do I prevent roads from disappearing when the player moves through them in a grid-based game? - C programming Replace /* Clear the player's previous position */ grid[*prevPlayerRow][*prevPlayerCol] = ' '; with /* Clear...
30 Mar 2024 by k5054
If I were doing this, I might be tempted to track the grid, the player and the car(s) separately, something like: struct position { int row, col }; struct position player; struct vehicle { char direction; struct position pos; }; // and...
30 Mar 2024 by merano99
To restore the background position, the old background can be saved with its position before it is overwritten by cars or players. As soon as the field is free again, the saved position can be restored. An alternative would be to use a copy of...
1 Aug 2012 by barneyman
it's just a DOS app, so create a shortcut (right click on it, send to desktop) for it, and change the screen size in the layout properties of that
5 Sep 2014 by CPallini
That would just remove everything in / mount point.
7 Jan 2016 by Alejandro Miralles
Introducing contest. The new testing framework for .NET.
26 Sep 2017 by OriginalGriff
Start at the end of the phrase, don't bother with words at all. Then step backwards through the string character by character until you reach the beginning. But this is your homework, not mine, so I'll give you no code!
26 Sep 2017 by CPallini
Hey man, it is C++ after all! #include #include #include using namespace std; int main() { string s{"The quick brown fox jumps over the lazy old dog."}; reverse(s.begin(), s.end()); cout
12 Apr 2019 by KarstenK
Rick is absolutly right that you arent accessing always the same pointers, but you need write code more carefully and use the debugger. Dont miss: unsigned char * image = NULL; unsigned char * image1 = NULL; For instance it isnt a good to load the image with a incomplete path....
14 Jan 2021 by OriginalGriff
I just tried it using gcc via rextester, and your code shows no such error: Compilation time: 0.12 sec, absolute service time: 0,29 sec Error(s): 1693378824/source.c: In function ‘main’: 1693378824/source.c:12:1: warning: ignoring return value of...
15 Apr 2023 by OriginalGriff
Start by using the debugger to find out exactly what values you are getting: argc and argv - when you know the number of arguments and what they are, it should be obvious what the problem is. We can't do that for you: we have no idea what you...
20 Feb 2024 by OriginalGriff
Create a global variable called lastSurfaceType and initialise it to "road". When you move a player, set the square it is on to lastSurfaceType before you do the move, then set the variable to the type the player is about to move to. That way,...
21 Feb 2024 by merano99
Obviously, according to the source code in movePlayer(), the roads do not play a role in relation to the player, as the player should be able to move through them. It is therefore background. This means that the previous state should be saved and...
9 May 2012 by mustafay87
HiMy aim is to test two CAN Bus interfaces. I want to setup two can bus in loop back mode. While writing a character from the first can bus, i expect to read the characters from the second can bus. So that, I need a can bus terminal software in Linux operating system, like picocom.is...
1 Aug 2012 by DrBones69
Does anyone know how to change the default screen size of the TelNet application in Windows 7?
22 Mar 2017 by Member 10423359
Hi,I have tried descriptive programming(DP) in QTP using terminal emulator. My code works when I code my script in static, but it fails when I code it in dynamic. It is unable to detect the field in the emulator even if after creating a dummy object and passing its values. Please...
9 May 2014 by Member 10791767
I am using CentOS version 6. I need to install google chrome. When I searched for the terminal yum commands i foud this:(Step 1: Enable Google YUM repositoryCreate a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to...
20 Jul 2014 by Member 10929519
hi guys i am new to this so i want to know about this so plz help me ... i want to know that how can i send commands through hyperterminal to printer to print some text....it will be great help for me ...thank you guys... here i have written all the process ...1)For sending any command /...
4 Dec 2014 by Member 11288032
how to register new load cell serial number on bilanciai D800 weighbridge terminal, its showing error code -09- that means the load cell is not registering in the D800 terminal, please any body tell me how to do this and how to calibrate the load cell.
7 Feb 2015 by Member 2274147
Hello,I am trying to implement a plugin for RD Connection Broker (by using of realization of the IWTSSBPlugin interface)In documentation I have readed that I should register my plugin in ExtensibilityPluginCLSID parameter of the...
12 Jun 2015 by Dev O'Connor
Afternoon All,Hoping you can shed some light here, i have an application that runs on an RDS 2012 RD Session host, it loops through the the process list from Win32_Process and compiles a list of who is running a specific instance of an process.Now, what i want to be able to achieve is to...
12 Jun 2015 by Dave Kreskowiak
What kind of app is this that you're monitoring and trying to relaunch?If it's an application that puts up any kind of user interface at all your users will not be able to see it, even if you launch the app as that user.While it is possible to remotely launch an application, it is now...
14 Jun 2015 by Andy Lanng
A service can only run on the default desktop. If you need to monitor each users desktop activity then each session will require an exe to be running. There are ways you can hide the exe but they aren't so easy.This article has a section on hiding apps from the taskbar.How To Make a...
15 Sep 2015 by Richard MacCutchan
See https://www.google.com/search?q=g_slice_set_config[^].
29 Sep 2015 by Maciej Los
Please, read my comment to the question...If you use sql server, you can save information about number of connections made to the server when application starts and delete such of information when application quits.A table used to store loged in/out machines might look like...
6 Nov 2015 by Ashish_Bhojani
I am working on serial port communication.I have done the comport connection and received the data and parsed it.But now I have to create terminal for serial port.So, how to implement Terminal in .Net? Its very much needed.Thanks in advance...!!!!
29 Jul 2017 by DBPatric
I keep getting a terminal all set up with a login and several exported environmental variables, and then I type a command wrong and get trapped. Is there something I can type to get back without closing the terminal and doing it all over? I don't know why it can't just tell me I typed it wrong...
22 Mar 2017 by Member 13076402
Found Solution for this . Remove class property value and try as below.Set oTeWindow=description.CreateoTeWindow("protocol").value="5250"Set oTeScreen=description.CreateoTeScreen("input field count").value="5"Set oUsrEdit=description.CreateoUsrEdit("attached...
19 Oct 2017 by Member 13474534
Well, the thing is that in Linux with the Terminal I use nano to create a plain text file with the content "GIF89a2017" and I save it as rare and I know that due to that header the file is detected as a GIF image. The thing is that four bytes that I put next to the header, 2017 in this case,...
19 Oct 2017 by Richard MacCutchan
0x3032 is the hex representation of the characters '02' stored in a short. And (assuming this is on an x86 system) that will actually be seen as the two characters '20' when addressed as bytes. Similarly 0x3731 is the characters 71, or 17 in normal order. To store those two values as integers...
20 Mar 2018 by wilma2202
So i need to reset my MySQL password after installing it. I have used some commands in terminal but nothing seems to be working.. I have looked everywhere and I can't find a solution to this problem... I am new to programming, and haven't needed to use terminal as of yet. If anyone could...
20 Mar 2018 by phil.o
Have you tried what is indicated here? MySQL :: MySQL 5.7 Reference Manual :: B.5.3.2 How to Reset the Root Password[^]
30 Jan 2019 by lock&_lock
I tried to compile my program in terminal. It works perfectly that way. But now I have several files and would rather use makefile instead, I tried to create makefile for my c++ program, but I encounter error "opencv2/opencv.hpp file not found". But I can compile correctly with the first method...
30 Jan 2019 by k5054
The line OPENCV = pkg-config --cflags --libs opencv4 doesn't evaluate the command, for that you need to wrap with $(shell ...). Also, you need to tell the compiler for each module where to find the include files for opencv. I think the following should do the trick. CFLAGS = -std=c++11...
24 Feb 2019 by saide_a
hi all I have the following makefile TARGET := test.so DEFINES := CC := g++ CFLAGS := -Wall -O3 -c -fpic -I$(INCLUDES) LDFLAGS := -lrt -ldl -lpthread -s -shared -fpic SRCS := ./main.cpp \ ../../src/test.cpp INCLUDES = -I../../inc ########################### OBJS := $(patsubst...
12 Apr 2019 by lock&_lock
I'm trying to use lookup table for pixel computation in openGL with input image, here's my lookup table : float pix_scaling [256]; static void scaling(void) { for (int i = 0; i
24 Apr 2019 by saide_a
hi all My problem is in using shared library I built and compiled my code in code blocks(on ubuntu os) program runs okay when I run it through code blocks but when I want to run it from terminal I am getting following error error while loading shared libraries: libsnmp++.so.33: cannot open...
24 Apr 2019 by k5054
You can add /usr/local/lib to the set of globally searched libraries as follows: $ sudo echo /usr/local/lib > /etc/ld.so.conf.d/usr-local.conf $ sudo /usr/sbin/ldconfig
28 Feb 2020 by lock&_lock
I'm following an OpenCV book tutorial to write and read into File Storage. It's supposed to write a file named "test.yml", then store some value in it and read that file again. Here's the working code : #include #include ...
27 Feb 2020 by phil.o
Time to debug your code. You should put a breakpoint on the first line of the main method, and start a debug session. This will allow you to execute the code line-by-line, watching the values in your variables along the way. This allows you to...
28 Apr 2020 by Richard MacCutchan
See linux device monitor - Google Search[^]
19 Nov 2020 by Shun Huang
How to set up Visual Studio Code for Scala development on WSL
14 Jan 2021 by Afzaal Ahmad Zeeshan
From a high-level overview, the code looks nice, secondly the code "compiles" just fine too: C++ Shell[^]. What I feel like is there might be an invalid character (most likely an invisible one) that is causing trouble for the compiler. Oh, and...
14 Jan 2021 by CPallini
Your code compiles fine (as already noted by our Griff). Just link it with the math library in order to obtain the executable, e.g. gcc -Wall foo.c -lm Please note, factorial results become 'unmanageable' very fast: even 64 bit integers can...
11 Feb 2022 by DoingWork
I want to start 2 applications with one shortcut. One application is GUI based while other is shell based (Terminal=true in .desktop file). What I have tried: For this goal, I created a file name **Starter** having following script in this...
24 Feb 2023 by OriginalGriff
Your error description isn't helpful: we have no idea where the error is. If I had to guess, I'd say that from the indentation you have ended the main method too early - immediately above the for loop freeing up the memory. You should expect to...
24 Feb 2023 by merano99
The definition of the grid does not match at first sight: int** map char board[][SIZE] Since both row and col are specified by the user at startup, the constant SIZE will not work well either. int row_map = atoi(argv[1]); int col_map =...
22 Mar 2023 by DosNecro
class Node: def __init__(self, key, value): self.key = key self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def search(self, key): curr = self.head ...
22 Mar 2023 by Richard MacCutchan
In order to use the [] operator you need to implement 3. Data model — Python 3.11.2 documentation: __getitem__()[^]. See also 3. Data model — Emulating container types[^] for complete details.
2 Apr 2023 by DosNecro
#ifndef MY_GAME_H #define MY_GAME_H #include #include #include #include #define EMPTY ' ' #define BORDER '*' #define PLAYER 'P' #define GOAL 'G' #define COLLAPSED 'X' typedef struct position { int...
2 Apr 2023 by k5054
I assume that a line like 4 2 P Means that the player is at row 4 column 2. Take a look at what you have to locate the player and the goal. You're reading in a single character each time, and comparing it to whether it's a 'P' or a 'G', but you...
2 Apr 2023 by merano99
As k5054 has already noted, the file is not read correctly. All values from the file are needed to initialize the grid. I would also avoid the global variables as far as possible. First of all it would make sense to define an own data type for...
15 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void print_map(char **map, int...
15 Apr 2023 by Richard MacCutchan
You should capture all arguments at the beginning of your main method. As it is you are capturing argv[1] at the beginning as waiting_time, and then later on as wait_time. That is bound to cause confusion. Also, you use the atoi function to...
15 Apr 2023 by merano99
As OriginalGriff said, a debugger should find the problem. However, except for the problem that the file might not be found, I have not found any problem reading in when there are actually exactly 7 positive numbers in the input.txt file. If...
15 Apr 2023 by Richard MacCutchan
This is the same issue as How to implement a sleep wait time function and take it in as a command line argument?[^], where I gave you a suggestion as to capturing the command line parameters. And I notice that you have still got the erroneous...
17 Apr 2023 by Richard MacCutchan
This is your third post of the same question, and you are still making the same mistake that I pointed out in the first one. You have the following code at the beginning: int waiting_time = atof(argv[1]); // get waiting time from command...
17 Apr 2023 by CPallini
You might actually use usleep, however it cannot handle waiting times greater than one second (see the relative man page). An alternative could be nanosleep[^], try #include #include #include int main(int argc,...
17 Apr 2023 by merano99
Quote: My new question is; how to check for out-of-bounds access I don't think it will help this time because as Richard said this is the third post with almost the same questions. As I told you here ...
17 Apr 2023 by k5054
Seems to work fine for me. What is in your input.txt, and what command line arguments are you using? But maybe now is a good time to get acquainted with the debugger (gdb). Make sure you've compiled a debug version (gcc flag -g, -g3 or -ggdb....
9 Jun 2023 by Александр Романеев
I run the terminal, But I do not understand which commands work. How to write correctly, so I exit the window or better the "help" command so I the allowed commands. Compiled successfully! You can now view react-app in the browser. Local: ...
9 Jun 2023 by Andre Oosthuizen
As Javascript is client side based, you will probably need node.js for your serverside. That being said, here are some shortcuts for Javascript terminal usage - 1. Installing - Regular: npm install Shortcut: npm i 2. Testing - Regular: npm...
22 Nov 2023 by DosNecro
-- Values for the schedule of all matches that took place INSERT IGNORE INTO WomenWCSchedule (Bracket, Match_ID, Referee_ID, Team_1, Team_2, Date, Time, Stadium) VALUES ('Group Stage A', 'M01', 'R05', 'New Zealand', 'Norway', '2023-07-20',...
22 Nov 2023 by k5054
As presented, there are no issues with your schema, other than no Stadium table definition. In any case, a column with a Foreign Key constraint may have duplicate values. Check the schema for the WomensWCSchedule table and make sure you do not...
20 Feb 2024 by DosNecro
I'm currently working on a grid-based game in C where I have roads represented by dots ('.') and a player represented by 'P'. The goal is for the player to reach the destination ('G'). However, I'm facing a challenge in keeping the roads visible...
8 Aug 2020 by OwenDavies
Installing a desktop environment and setting up RDP to allow us to connect to our Virtual Machine
29 Mar 2024 by DosNecro
/* Rasal Amarasurya */ /* 21304178 */ #include #include #include /* For malloc, free */ #include "game.h" /* Include the game header */ void initializeGame(char **grid, int rows, int cols, FILE *file, int...
29 Mar 2024 by merano99
CPallini is right! The comment in the source code says that the initializeGame() function should determine the player position. int playerRow, playerCol; /* Removed the initialization here as it's set in initializeGame */ However, the prototype...
31 Mar 2024 by steveb
Generally in a computer graphics smooth rendering is achieved by using a back buffer to which an image is drawn with subsequent BLIT (Block Image Transfer) into the Video memory. Drawing into the video memory directly results in visual anomalies...
30 Mar 2024 by DosNecro
/* Rasal Amarasurya */ /* 21304178 */ #include #include #include /* For malloc, free */ #include "game.h" /* Include the game header */ void initializeGame(char **grid, int rows, int cols, FILE *file, int...
1 Apr 2024 by KarstenK
As somebody already wrote: best is to hold the complete map (your background) as drawable image the whole game, so your drawing code may look similar like:void drawScreen(int x, int y) { if( isSomeCarAt( x, y ) { drawCar( x, y ); } else {...
2 Jun 2014 by Bjørn
A simple explorer and file transfer for files over a telnet connection
15 Nov 2013 by Orjan Westin
Reading an input of any type, or simply enter, from the command line
12 Apr 2019 by Rick York
It appears to me the problem is here : r = pix_scaling[p[0]]; g = pix_scaling[p[1]]; b = pix_scaling[p[2]]; r, g, b will ALWAYS have the same values because p[1] is a never changed. I think you have to increment p to point to the next pixel at every iteration of the loop.
4 Jul 2016 by Richard MacCutchan
See keyboard - How to unfreeze after accidentally pressing Ctrl-S in a terminal? - Unix & Linux Stack Exchange[^].
11 Jan 2013 by Member 1303755
We are re-writing a VB.NET application that uses the System.Diagnositcs.Process.Start(mypdf)call to open a PDF document. A message box is displayed and when the user clicks OK, the PDf is typically closed using the CloseMainWindow() call. (we also check for the HasExited status)command to...
14 Jan 2021 by honotard
Been doing a task in C programming language. I had a problem with fmod which gave me a specific error after trying to execute and give permission.(Undefined reference to fmod, error ld returned 1 exit status). Some people helped me on this...
24 Feb 2023 by DosNecro
#include #include // Constants for the map characters const char MAP_BORDER = '*'; const char PLAYER_CHAR = 'P'; const char GOAL_CHAR = 'G'; const char COLLAPSED_CHAR = 'X'; const char EMPTY_CHAR = ' '; int main(int argc,...
5 Sep 2014 by Nick Salesky
I had an idea for something in the terminal/command line that would basically delete EVERYTHING very very VERY easily. I didn't want to try it on my computer, but theoretically do you think it might work? sudo rm -r /
29 Sep 2015 by Member 7942646
Hi all,I have designed a vb.net windows application now I would like to give security to my application such as Multi user license.For example if a user haves only 5 user license than he should be run the application only in 1 server + 4 network machine. When the 6th network machine use...
26 Sep 2017 by Member 13431253
If the user inputs "The quick brown fox jumps over the lazy old dog." the program should read back ".god dlo yzal eht revo spmuj xof nworb kciuq ehT". The program should be able to read any sized input. I am only able to get it to reverse one word because it will not read every word in the...
29 Nov 2022 by Z@db@khsh
By running spyder in my machine, this error appears: "The error message is: Unfortunately, the library that Spyder-terminal use to create terminals is failing to work in your system. Therefore, this plugin will be deactivated. This usually...
4 Apr 2015 by awacate
Hi guys! So I was trying to execute a very simple ruby file that I saved in my user folder (by default) and I tried to execute it from Terminal (I am on the Yosemite version). After entering:#!/usr/bin/env ruby(then dragged the file to Terminal) it gives me this:-bash: (file)...
15 Sep 2015 by Member 11987227
Kali Linux 2015 As root userI open Firefox in the command terminal and a process error shows up everytime I open it, there is no forum or Kali Linux tutorial that shows any information on this error Well there's a few forums but no one has clearly answered them with any knowledge...
15 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void print_map(char **map, int...
17 Apr 2023 by DosNecro
#include #include #include #include // for sleep() function #include enum direction { UP, DOWN, LEFT, RIGHT }; struct ant { int row; int col; enum direction dir; }; void...