Questions tagged [carriage-return]
Carriage return is one of the control characters in ASCII code, Unicode, EBCDIC, and many other codes. It commands a printer, or other output systems such as the display of a system console, to move the cursor's position to the first position on the same line.
carriage-return
893
questions
1
vote
0
answers
70
views
C++ Line Feed converted to Carriage Return & Line Feed [duplicate]
I'm in the process of writing a file that has to save numeric data as chars to be read by a different, already-developed program. It has been simple enough in execution so far, but I'm having trouble ...
0
votes
2
answers
208
views
How to keep tqdm progress bar on the bottom of the terminal?
Here is the code
def download_from_dict(path_link_dict, folder)
counter = 0
for path, link, name in tqdm(path_link_dict):
counter = counter + 1
if os.path.isfile(folder + path ...
0
votes
1
answer
47
views
Bash ssh execute command occationally result in ^M
I was conducting an experiment using bash script, and need to execute some commands on the remote SSH side[Both local and remote machines are Linux-based ]
When I use the following command [use ...
2
votes
2
answers
210
views
Insert new line in contenteditable on Ctrl+Enter
I would like to insert a new line in a contenteditable when the user press Ctrl+Enter.
Based on the following questions, I wrote the code below:
Insert newline on enter key in contenteditable div
How ...
0
votes
1
answer
37
views
Remove Wrap Text Quotation Mark
I have a csv file which I am attempting to edit and I notice that there is a line break with text encased in quotation marks. The break causes a portion of text to appear on a new line. See Current ...
0
votes
1
answer
108
views
Python not finding carriage returns (^M or \r) visible to nano and vi
I am currently writing a bash script that returns the output of the functions it performs as a log file. When this is viewed in Notepad text showing the process of a function takes up the bulk of the ...
0
votes
2
answers
63
views
why is the output of the code coming as "Time's up!ning: 1" and not "Time's up!" in python jupyter notebook? [duplicate]
import time
# Print a countdown using carriage return
def countdown():
for i in range(5, 0, -1):
print(f"Time remaining: {i}", end='\r')
print("Time's up!")
# ...
0
votes
0
answers
15
views
How to remove CR in columns in Oracle custom tables
I am exporting thousands of lines out of some custom Oracle tables bit am finding many records with an erroneous CR at the end of the data column which then exports it as a new line. This can be seen ...
1
vote
1
answer
147
views
How to avoid " " (CR) in XMLSignature generated from webapp running on Tomcat 8.5 with JDK8
I'm experiencing a problem with java XMLSignature: when I try to generate the signature and then sign the XML file, an unwanted HTML-like Carriage Return (" ") is placed at then end ...
-1
votes
1
answer
80
views
replace \r\n with \n so can have next line
i read a string from my csv file like below
BenFeature = fieldSet.readString("ben_feature").replaceAll("\r\n","\n");
the text from my file ben_feature = "Testing \...
0
votes
1
answer
114
views
Bash: concatenate two variables with colon in the middle results in unpredictable behaviour [duplicate]
I have a directory containing files that start with a date.
for file in ./my_dir/*; do
first_line=$(head -n 1 "$file")
echo $file:$first_line
done
This prints as below, which is ...
1
vote
1
answer
41
views
jQuery next Input in table
I have a series of input and select elements in a table:
<table id='tbl-edit-company' class='tbl-form tbl-contact-form'>
<tbody>
<tr>
<td><...
0
votes
0
answers
27
views
How to Echo Newline ("\x0A") Without Appended Carriage Return ("\x0D") [duplicate]
I am trying to transfer individual bytes from a binary file over UART from a Linux MPU to a separate MCU. The code I am using to transfer the data is shown below:
echo -ne $data > /dev/ttyS1
This ...
0
votes
1
answer
209
views
console output from guest (qemu VM) does no carriage return on host console when called with python subprocess.Popen
I installed a virtual machine (guest) via qemu (qemu-system-x86_64) on a linux box (host).
The virtual machine is also linux. On guest I have the following remote_bash_script.sh:
remote_bash_script.sh:...
0
votes
0
answers
54
views
Assembly program carriage return won't output correctly
so I have an assignment in my assembly language class, a fairly simple one, but for some reason, the CR, or 13, isn't working properly and I can't seem to figure out why. I'm fairly new at this, but I ...