How to add scroll empty space in terminal?
When you do find /
in the native ubuntu terminal it prints output till the end of the screen. After this there is no empty scroll space available to scroll down. I temporarily solved this problem by clear
function which adds additional scroll space. I do python programming in terminal and in it this doesn't work
for a in range(1000):
print(a)
How I can hard code terminal to get some scroll empty space for both bash and python?
command-line gnome-terminal
|
show 8 more comments
When you do find /
in the native ubuntu terminal it prints output till the end of the screen. After this there is no empty scroll space available to scroll down. I temporarily solved this problem by clear
function which adds additional scroll space. I do python programming in terminal and in it this doesn't work
for a in range(1000):
print(a)
How I can hard code terminal to get some scroll empty space for both bash and python?
command-line gnome-terminal
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
2
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
1
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
2
See superuser.com/questions/1106674/….
– egmont
2 days ago
|
show 8 more comments
When you do find /
in the native ubuntu terminal it prints output till the end of the screen. After this there is no empty scroll space available to scroll down. I temporarily solved this problem by clear
function which adds additional scroll space. I do python programming in terminal and in it this doesn't work
for a in range(1000):
print(a)
How I can hard code terminal to get some scroll empty space for both bash and python?
command-line gnome-terminal
When you do find /
in the native ubuntu terminal it prints output till the end of the screen. After this there is no empty scroll space available to scroll down. I temporarily solved this problem by clear
function which adds additional scroll space. I do python programming in terminal and in it this doesn't work
for a in range(1000):
print(a)
How I can hard code terminal to get some scroll empty space for both bash and python?
command-line gnome-terminal
command-line gnome-terminal
edited Mar 11 at 2:46
Eka
asked Mar 10 at 3:17
EkaEka
1,05862139
1,05862139
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
2
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
1
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
2
See superuser.com/questions/1106674/….
– egmont
2 days ago
|
show 8 more comments
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
2
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
1
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
2
See superuser.com/questions/1106674/….
– egmont
2 days ago
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
2
2
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
1
1
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
2
2
See superuser.com/questions/1106674/….
– egmont
2 days ago
See superuser.com/questions/1106674/….
– egmont
2 days ago
|
show 8 more comments
1 Answer
1
active
oldest
votes
Let's say you want three extra lines below your prompt.
In Bash, run this, and from then on, you will have the three extra lines:
PS1+="[eDeDeDe[3A]"
To make it permanent, put it in your ~/.bashrc
.
The equivalent in Python uses sys.ps1
:
import sys
sys.ps1 += 'x01x1bDx1bDx1bDx1b[3Ax02'
Or you could move the number of extra lines into a variable:
_ps1_extra_lines = 3
sys.ps1 += 'x01' + 'x1bD' * _ps1_extra_lines + 'x1b[A' * _ps1_extra_lines + 'x02'
To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.
Also note this is meant for the regular Python shell, and will not work in IPython, for example.
For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124438%2fhow-to-add-scroll-empty-space-in-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Let's say you want three extra lines below your prompt.
In Bash, run this, and from then on, you will have the three extra lines:
PS1+="[eDeDeDe[3A]"
To make it permanent, put it in your ~/.bashrc
.
The equivalent in Python uses sys.ps1
:
import sys
sys.ps1 += 'x01x1bDx1bDx1bDx1b[3Ax02'
Or you could move the number of extra lines into a variable:
_ps1_extra_lines = 3
sys.ps1 += 'x01' + 'x1bD' * _ps1_extra_lines + 'x1b[A' * _ps1_extra_lines + 'x02'
To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.
Also note this is meant for the regular Python shell, and will not work in IPython, for example.
For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
add a comment |
Let's say you want three extra lines below your prompt.
In Bash, run this, and from then on, you will have the three extra lines:
PS1+="[eDeDeDe[3A]"
To make it permanent, put it in your ~/.bashrc
.
The equivalent in Python uses sys.ps1
:
import sys
sys.ps1 += 'x01x1bDx1bDx1bDx1b[3Ax02'
Or you could move the number of extra lines into a variable:
_ps1_extra_lines = 3
sys.ps1 += 'x01' + 'x1bD' * _ps1_extra_lines + 'x1b[A' * _ps1_extra_lines + 'x02'
To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.
Also note this is meant for the regular Python shell, and will not work in IPython, for example.
For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
add a comment |
Let's say you want three extra lines below your prompt.
In Bash, run this, and from then on, you will have the three extra lines:
PS1+="[eDeDeDe[3A]"
To make it permanent, put it in your ~/.bashrc
.
The equivalent in Python uses sys.ps1
:
import sys
sys.ps1 += 'x01x1bDx1bDx1bDx1b[3Ax02'
Or you could move the number of extra lines into a variable:
_ps1_extra_lines = 3
sys.ps1 += 'x01' + 'x1bD' * _ps1_extra_lines + 'x1b[A' * _ps1_extra_lines + 'x02'
To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.
Also note this is meant for the regular Python shell, and will not work in IPython, for example.
For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.
Let's say you want three extra lines below your prompt.
In Bash, run this, and from then on, you will have the three extra lines:
PS1+="[eDeDeDe[3A]"
To make it permanent, put it in your ~/.bashrc
.
The equivalent in Python uses sys.ps1
:
import sys
sys.ps1 += 'x01x1bDx1bDx1bDx1b[3Ax02'
Or you could move the number of extra lines into a variable:
_ps1_extra_lines = 3
sys.ps1 += 'x01' + 'x1bD' * _ps1_extra_lines + 'x1b[A' * _ps1_extra_lines + 'x02'
To make it permanent, put it in a PYTHONSTARTUP file, which you may need to set up first.
Also note this is meant for the regular Python shell, and will not work in IPython, for example.
For explanation and more details, see How to add blank lines above the bottom in terminal - Super User.
edited 2 hours ago
answered 13 hours ago
wjandreawjandrea
9,33842664
9,33842664
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
add a comment |
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
I like a blank line before my prompt rather than after.
– WinEunuuchs2Unix
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
@Win Me too, but that's too easy ;)
– wjandrea
13 hours ago
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124438%2fhow-to-add-scroll-empty-space-in-terminal%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you have your terminal profile scroll buffer set to? Scrolling in such a situation is the default.
– ubfan1
Mar 10 at 3:31
Mine is limited to 8192 lines
– Eka
Mar 10 at 3:46
2
As far as I understand, your problem is that there is no empty space under the output of your utilities. New lines will automatically appear there and the existing content will scroll upwards whenever needed. What is your actual problem, what is it that doesn't work for you?
– egmont
Mar 10 at 23:39
1
@Eka Why do you need empty space?
– wjandrea
Mar 11 at 3:39
2
See superuser.com/questions/1106674/….
– egmont
2 days ago