Is there a similar command like COLOR in MS-DOS?Why does MS-DOS tells me I need extended memory and thinks a...
Rationale to prefer local variables over instance variables?
Real life puzzle: Unknown alphabet or shorthand
Are there any other Chaos worshipping races?
Logistics of a hovering watercraft in a fantasy setting
Alameda and Belisario throwing a fair die.
How to kill a localhost:8080
If nine coins are tossed, what is the probability that the number of heads is even?
How would we write a misogynistic character without offending people?
Misplaced tyre lever - Alternatives?
Non-Italian European mafias in USA?
Can I send almost 1MB transaction?
How do ISS astronauts "get their stripes"?
What is better: yes / no radio, or simple checkbox?
Plagiarism of code by other PhD student
What happened to QGIS 2.x
When was drinking water recognized as crucial in marathon running?
Is the helper verb 'werden' mandatory in both passive clauses separated by an 'oder', or only at the very the end?
How to mitigate "bandwagon attacking" from players?
Is there a frame of reference in which I was born before I was conceived?
What does 'acting greedily' mean?
Does Garmin Oregon 700 have Strava integration?
Is there a math equivalent to the conditional ternary operator?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Can we carry rice to Japan?
Is there a similar command like COLOR in MS-DOS?
Why does MS-DOS tells me I need extended memory and thinks a file is read-only?DOS ethernet driverCustom MS-DOS / FreeDOSCan I make Grub2 boot to dos like this?LAN connection - DOS to Windows 7Add MS-DOS boot option to Windows 2000Why do I get an internal stack overflow error when minimizing and restoring an MS-DOS virtual machine window?Is it possible to print from a DOS application to google cloud printer?Use DOSBox's SB16 Emulation in real DOS?Is it possible to run a dos application in fullscreen in Windows 10 32 bit
MS-DOS 6.22 is running. Who needs Windows 10?
I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment.
But is this also possible when MS-DOS is already running?
My case is, that I want to run a .BAT file, that then switching the color whether it throws an error or is ok.
ms-dos
add a comment |
MS-DOS 6.22 is running. Who needs Windows 10?
I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment.
But is this also possible when MS-DOS is already running?
My case is, that I want to run a .BAT file, that then switching the color whether it throws an error or is ok.
ms-dos
add a comment |
MS-DOS 6.22 is running. Who needs Windows 10?
I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment.
But is this also possible when MS-DOS is already running?
My case is, that I want to run a .BAT file, that then switching the color whether it throws an error or is ok.
ms-dos
MS-DOS 6.22 is running. Who needs Windows 10?
I know that upon starting there is a possibility to change the foreground and background color of the MS-DOS environment.
But is this also possible when MS-DOS is already running?
My case is, that I want to run a .BAT file, that then switching the color whether it throws an error or is ok.
ms-dos
ms-dos
asked Aug 7 '15 at 15:14
TrollwutTrollwut
1961416
1961416
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f952425%2fis-there-a-similar-command-like-color-in-ms-dos%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
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
add a comment |
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
add a comment |
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.
There are two possibilities:
- You install ANSI.SYS or any other ANSI driver. Then you just write an escape sequence to the screen, e.g.
ESC [ 37 ; 44 m, where ESC is the Escape character (0x1b) and without any spaces. This sequence will change the color of the following text to "white on blue". If you can input the ESC character into your BAT file, this works well (try Ctrl+P ESC in DOS EDIT). - You directly change the screen memory at 0xB800. This way you can also change the color of existing text without removing (and rewriting) it first. You probably need an external tool (DEBUG should suffice, though) to be able to change display memory. Also, it probably only works on IBM-PC compatible systems with a CGA-compatible graphics card.
edited 18 hours ago
phuclv
9,76863992
9,76863992
answered Aug 7 '15 at 15:30
Sebastian R.Sebastian R.
36415
36415
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
add a comment |
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
I will work on that on Monday, thanks for your response!
– Trollwut
Aug 7 '15 at 16:10
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f952425%2fis-there-a-similar-command-like-color-in-ms-dos%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