Mail Archives: djgpp/2014/04/10/20:45:05.1

X-Authentication-Warning: mail set sender to djgpp-bounces using -f
From: "Rod Pemberton" <dont_use_email AT xnothavet DOT cqm>
Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: Why does PROMPT accept 128 characters if the command line is only
Date: Thu, 10 Apr 2014 20:39:43 -0400
Organization: NNTP Server
Lines: 17
Message-ID: <op.xd4mshm76zenlw@localhost>
Mime-Version: 1.0
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 <...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

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019