China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-07 07:55
中国DOS联盟论坛 » 其它操作系统综合讨论区 » [Discussion] Making the cmd window more user-friendly View 3,954 Replies 22
Original Poster Posted 2007-12-30 13:42 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
I saw a Telnet login interface on the Shuimu Tsinghua BBS. It is very similar to a cmd window,
but it feels much better than a cmd window: colored text, and especially the function of using the up, down, left, and right arrow keys to choose and enter different module areas is very convenient.
As far as I know, when a cmd window offers users choices, it seems they always have to type a letter or a number and then press Enter to confirm, which is time-consuming and troublesome. So my question is:
How can a cmd window also let users choose operations with the up, down, left, and right arrow keys? (It would be even better if it could also use colored text.)
You can go there and experience for yourselves how convenient and user-friendly that Telnet login interface is.


Here is the URL:
http://www.smth.edu.cn/frames.php

Added at noon on January 19:


Different lines display different colors
@echo off&setlocal&cls&title Color in Cmd
mode con cols=38 lines=10
echo.&echo/&echo(
set "a= One World One Dream!"
set "b= You are Pig"
set "c= Let's all say-FUCK"
call:9527 0a "%a%"
echo.&echo/&echo(
call:9527 0e "%b%"
echo.&echo/&echo(
call:9527 0c "%c%"
pause>nul
goto :eof
:9527
Pushd %Temp%
echo.>%2
findstr /a:%1 .* "%~2?"
popd


I also found another post, where one line can display different colored characters:
http://www.cn-dos.net/forum/viewthread.php?tid=25797&fpage=7

@echo off

:: Display colored characters on a single line; the color value does not affect any line other than this one
::
:: Var Redtek 2006 - bbs.cn-dos.net



set "var=A$_MOV,AH,09$_MOV,AL,2A$_MOV,BH,00$_MOV,BL,0E$_MOV,CX,0020$_INT,10$_"
set "var=%var%MOV,BL,0A$_MOV,CX,000A$_INT,10$_INT,20$_$_g$_q$_"
echo exit|%ComSpec% /k prompt %var%|debug>nul


But this is still some distance from what we want. It needs to be integrated. Still working on it......

[ Last edited by plp626 on 2008-4-27 at 02:22 AM ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
523066680 +2 2008-04-25 13:46
Floor 2 Posted 2007-12-30 14:55 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Why is nobody replying? Could it be that all of you can do this already, and this question is too simple?????????????????????????????????????????????????????
Floor 3 Posted 2008-01-03 17:00 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,284
Posts 538
Joined 2002-11-02 00:00
23-year member
UID 129
Gender Male
Status Offline
What is there to refer to?! An advertising post, everyone don't be fooled!
Floor 4 Posted 2008-01-03 22:19 ·  中国 山东 济南 移动
系统支持
★★★
Credits 1,011
Posts 435
Joined 2007-02-08 00:00
19-year member
UID 78999
Gender Male
Status Offline
He's talking about telnet
but telnet sites have been getting fewer and fewer lately

When will cndos be turned into a telnet site
Floor 5 Posted 2008-01-04 16:30 ·  中国 河北 唐山 中移铁通
新手上路
Credits 16
Posts 10
Joined 2005-10-26 13:08
20-year member
UID 44089
Gender Male
Status Offline
Hehe, support the poster above!
Floor 6 Posted 2008-01-07 19:44 ·  中国 甘肃 平凉 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
lxmxn +2 2008-01-07 20:00
plp626 +2 2008-01-08 22:16
Floor 7 Posted 2008-01-07 21:32 ·  中国 河南 南阳 联通
初级用户
Credits 34
Posts 18
Joined 2007-12-10 19:02
18-year member
UID 105254
Gender Male
Status Offline
Is that true? Very few people use telnet now, it's all because of Windows making everyone lazy
Floor 8 Posted 2008-01-08 02:06 ·  中国 福建 龙岩 电信
初级用户
Credits 59
Posts 27
Joined 2006-10-18 11:17
19-year member
UID 66354
Status Offline
I also want to know how to beautify the CMD window
Floor 9 Posted 2008-01-08 22:18 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Could post #6 explain what rundll32 is about, how to use it, or where there is documentation on this?
Thanks in advance.
Floor 10 Posted 2008-01-09 12:44 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Originally posted by plp626 at 2008-1-8 22:18:
Could post #6 explain what rundll32 is about, how to use it, or where there is documentation on this?
Thanks in advance.

It's in the batch room, just search for it with the keyword "rundll32".
Floor 11 Posted 2008-01-09 13:20 ·  中国 山东 济南 移动
系统支持
★★★
Credits 1,011
Posts 435
Joined 2007-02-08 00:00
19-year member
UID 78999
Gender Male
Status Offline
Getting ready to go home and set up a telnet server
then consider merging it with cn-dos
Floor 12 Posted 2008-01-10 19:04 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
The poster above (post #11), why are you posting ads?
Floor 13 Posted 2008-01-15 18:06 ·  中国 山东 青岛 联通
新手上路
Credits 5
Posts 3
Joined 2008-01-15 17:38
18-year member
UID 108691
Gender Male
Status Offline
telnet is something way out of date, how many forums are still using it now
Floor 14 Posted 2008-01-15 18:34 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Poster above, did you even go look?
Read the thread title carefully.
Floor 15 Posted 2008-01-18 09:13 ·  中国 浙江 温州 乐清市 电信
初级用户
★★
Credits 109
Posts 52
Joined 2006-01-03 22:47
20-year member
UID 48392
Status Offline
The OP's requirement should be solvable with Wbat.
Forum Jump: