Commit Graph

62 Commits

Author SHA1 Message Date
Matthew Flatt
3f9fea063f readline: explicitly load "libncurses"
Needed for OpenBSD
2013-03-10 07:20:38 -06:00
Danny Yoo
f1e7051652 Override readline's getc function to use Racket's read-byte.
Eliminates the busy-polling behavior observed in Mac OS X when
xrepl is required at the regular repl.

Closes PR 13350.
2013-02-10 05:54:52 -07:00
Tobias Hammer
0f6a5833fc readline/readline: add readline-newline' and readline-redisplay'
mzrl.rkt:
  Add and provide readline-newline and readline-readisplay.

readline.scrbl:
  Documentation and example code.
2013-01-09 19:12:22 -07:00
Ryan Culpepper
ae843f9a62 readline: prefer 5 (fast) over 6 (slow)
Running racket in a terminal with readline 6 has excruciating delays
in response and bizarrely slow pasting. The culprit is probably a bug
in readline v6.2 that causes the rl_event_hook to be called repeatedly
even when input is ready. See also the discussion here:
http://lists.gnu.org/archive/html/bug-readline/2012-06/msg00005.html

It's not clear whether racket can work around the issue in readline 6,
but it can at least use readline 5 instead when it is available.
2012-08-28 23:36:50 -04:00
Eli Barzilay
f335b47a18 Apparently things work fine with readline 6 too. 2012-05-08 21:18:15 -04:00
Eli Barzilay
49c8a5fb28 Racketizations. 2012-05-06 13:13:16 -04:00
Eli Barzilay
45394bb7b6 Use (banner) instead of a fixed "Welcome to Racket" in the More tutorial
and in the guide.

Also, add a tag to the readline "License Issues" to be able to link to
it from the xrepl docs.
2011-07-18 14:25:10 -04:00
Matthew Flatt
cc6f3f69ab add `port-set-next-location!'; make prompt read handler use it
Closes PR 12035
2011-07-10 08:36:47 -06:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Ryan Culpepper
1b702a2ae3 docs reorganization
added tutorial, racket categories
  relabeled some other categories
  normalized manual names: de-bolded, changed some names
2011-07-01 17:16:53 -06:00
Robby Findler
69b5daa9e6 remove docs tests that no one was interested in 2011-07-01 11:38:09 +08:00
Matthew Flatt
f34a31cac9 "under <platform>" -> "on <platform>"; "X" -> "Unix"
I originally picked "under" as the preposition to go before
 a platform name, but obviously you should build "on" a
 platform, and "under" suddenly annoys me. The choice of "on"
 is now codified in the documentation style guide. Meanwhile,
 "Unix" insted of "X" seems more clear and consistent in the
 `racket/gui' docs.

 More usefully, this patch also fixes a few out-of-date
 platform-specific claims.
2011-06-17 18:54:43 -06:00
Robby Findler
507b1cd8fd moved the docs-complete library into rackunit
to avoid having a separate, new manual for the
  one library
2011-05-05 16:10:42 -05:00
Robby Findler
e7d0029aea added lots of new tests that our documentation is complete 2011-04-25 13:24:43 -05:00
Matthew Flatt
fb406390b7 fix readline port to obey port protocol & use interaction port handler
--- in particular, it no longer blocks on a read request; the
     call to the readline library now uses a separate thread,
     so that the input port can return an event
2011-01-24 19:47:21 -07:00
Matthew Flatt
6a7aaf48cc rackety readline doc 2010-05-02 12:25:21 -06:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00
Matthew Flatt
1621091fc1 add 'current-read-interaction' parameter
svn: r18769
2010-04-09 13:22:57 +00:00
Eli Barzilay
5c54f3a5ac Use readline-input' for the port name, since readline' makes error
messages confusing.

svn: r17977
2010-02-05 03:21:56 +00:00
Eli Barzilay
5681037aff Some improvements to `install-readline!', make it report what it did, and make
it add a comment before the new expression.

svn: r17387
2009-12-22 19:35:13 +00:00
Eli Barzilay
5994c5de59 mzscheme -> scheme/base
svn: r17386
2009-12-22 19:11:34 +00:00
Jay McCarthy
98488a89ef DrDr bugs and spurious errors
svn: r16412
2009-10-22 18:45:02 +00:00
Eli Barzilay
6342131e6d fix dropping of duplicate items & multi-line items
svn: r11895
2008-09-28 20:42:18 +00:00
Matthew Flatt
2c813c53c5 fix '(nonnegative|positive)-exact-integer?' contracts (moving 'exact-' to the front where it belongs)
svn: r10960
2008-07-29 12:56:05 +00:00
Matthew Flatt
a1c1c7e6df fix free_history_entry default
svn: r10551
2008-07-02 01:40:50 +00:00
Eli Barzilay
198bc92df2 use free() when there is no free_history_entry
svn: r10530
2008-07-01 11:03:21 +00:00
Matthew Flatt
b1c561f917 free_history_entry not available in OS X libreadline
svn: r10422
2008-06-23 13:31:15 +00:00
Eli Barzilay
3e0de8592d * Now removing all duplicates by default, not only consecutive ones
* Use multi-line history elements when a multi-line expression is entered

svn: r10415
2008-06-23 04:04:40 +00:00
Eli Barzilay
364c048008 removed some for-syntax requires that are no longer needed for runtime-path
svn: r10100
2008-06-03 00:02:59 +00:00
Matthew Flatt
a26b334c67 proprocessor doc, merge scribblings and doc-categories fields
svn: r9414
2008-04-23 00:20:25 +00:00
Eli Barzilay
b1a08edd5a use new require specs in many places
svn: r8774
2008-02-23 09:42:03 +00:00
Eli Barzilay
699c40643d * Changed setup-plt to compile collections if they have an "info.ss"
file.  (That is, it does not require the file to have a `name'
  entry.)

* The name shown when setup works is the directory name, followed by
  the `name' field from the info file when specified.

* This means that many `name's are no longer needed, so I'm removing
  them.  To see if you need a `name' entry, consider that the name
  will be shown like this:
    ... foo (<your name here>)
  This means that if the name is the same as the directory name, then
  there is no point in having it.  I also removed cases where the name
  differed only in its capitalization for collections where the case
  is obvious.

* Also, for subcollections, the name should clarify the name of the
  subcollection in context.  For example "Acknowledgments" explains
  what scribbling/acks is, but there's no need to add the context name
  as in "Scribblings: Acknowledgments".

* There may also be a point in keeping names for other uses.  One such
  example was in games, where the name field was used in the PLT Games
  application.  (This was changed to default on the directory name, so
  it is no longer needed in most games.)  Another example is in planet
  packages.

svn: r8629
2008-02-12 10:33:01 +00:00
Eli Barzilay
3c72e71e24 switched info.ss files to #lang
svn: r8532
2008-02-04 23:00:35 +00:00
Eli Barzilay
d78396aaf9 remove unused blurb fields
svn: r8526
2008-02-04 17:16:06 +00:00
Matthew Flatt
1310027d8b misc fixes
svn: r8346
2008-01-16 03:03:23 +00:00
Matthew Flatt
b014545c7a added 'more: systems' doc
svn: r8341
2008-01-16 00:21:19 +00:00
Eli Barzilay
1f3605562a removed doc.txt entry
svn: r8338
2008-01-15 20:20:04 +00:00
Matthew Flatt
6aa2962602 readline doc corrections
svn: r8321
2008-01-14 13:32:10 +00:00
Matthew Flatt
62f38e2a40 readline scribblings; set GC alignment to 8-byte by default
svn: r8320
2008-01-14 13:06:53 +00:00
Matthew Flatt
39cedb62ed v3.99.0.2
svn: r7706
2007-11-13 12:40:00 +00:00
Eli Barzilay
a24b323e2b try binary so first
svn: r6139
2007-05-04 06:12:17 +00:00
Eli Barzilay
26ab4af5f7 made it possible to try several versions, use it in readline and openssl
svn: r6138
2007-05-04 06:08:48 +00:00
Eli Barzilay
943967a4ce fix completion bug, added namespace-based completion (forgot to commit these files last time)
svn: r6137
2007-05-04 06:07:54 +00:00
Eli Barzilay
3167c6621e fix completion bug, added namespace-based completion
svn: r6135
2007-05-04 04:47:43 +00:00
Eli Barzilay
bab0a88ada * print a newline before reading if not at column 0
* flush the output before reading in `read-cmdline-syntax'
* rep.ss starts readline only when the input is a terminal

svn: r6128
2007-05-03 09:17:24 +00:00
Eli Barzilay
be0c68af4b free readline results
svn: r5255
2007-01-08 04:15:53 +00:00
Eli Barzilay
737d3d5782 warning
svn: r5254
2007-01-08 02:10:37 +00:00
Eli Barzilay
a0af57c0b2 warn if did not get a terminal input
svn: r5253
2007-01-08 00:46:04 +00:00
Eli Barzilay
1e1ae2714a better conditions for usage
svn: r5245
2007-01-07 19:13:10 +00:00
Matthew Flatt
cfc0e616a2 support mid-stream EOF
svn: r5144
2006-12-20 00:58:36 +00:00