X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Why does PROMPT accept 128 characters if the command line is only 126? Date: Thu, 10 Apr 2014 20:39:43 -0400 Organization: Aioe.org NNTP Server Lines: 17 Message-ID: NNTP-Posting-Host: CNsg4fVcCsvs3UaOgZtQCw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Bytes: 1376 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com If the command line is 126 characters, why does PROMPT accept 128? In MS-DOS v7.10 (in real mode and Windows SE console), PROMPT will accept upto 128 characters for a new prompt, when using a single character prompt. E.g., PROMPT $Q PROMPT <...enter 128 characters...> RBIL says 128 bytes are available in the PSP, two of which are in-use. DJGPP says MAX_INPUT is 126 in limits.h. I'm hoping someone knows why this is off by two ... Rod Pemberton