public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: kawa@sourceware.org
Subject: Re: Different behavior for -s argument in Kawa 2.0?
Date: Fri, 09 Jan 2015 23:05:00 -0000	[thread overview]
Message-ID: <54B05E87.1050101@bothner.com> (raw)
In-Reply-To: <687DFB7D-EADA-43CC-9242-B1A0C9C8B7A2@theptrgroup.com>



On 01/09/2015 02:31 PM, Jamison Hope wrote:
> Jeff, can you try evaluating some expressions to see if you are also just missing the prompt?

If so, it may be useful to evaluate: (current-input-port):class

This should result in: class gnu.kawa.io.TtyInPort

You would not get a prompt otherwise.  And this is controlled by the
haveConsole method in InPort.java, which calls System.console().
It might work for me because I'm on GNU/Linux, and you're on Windows,
and the latter doesn't have try PTYs.  Thus System.console() might
return null in  an Emacs context.

A possible solution is to add a --console flag (similar to
sh's -i flag), which would be the inverse of the --no-console flag,
in that it would force haveConsole to return true.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

  reply	other threads:[~2015-01-09 23:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAFVyn8RdRnhc9DGpzT=oA6sQ0oWcbRM71hYvVUROV+7grKkTMQ@mail.gmail.com>
2015-01-09 16:48 ` Jeff Gonis
2015-01-09 20:51   ` Per Bothner
2015-01-09 22:07     ` Jeff Gonis
2015-01-09 22:31       ` Jamison Hope
2015-01-09 23:05         ` Per Bothner [this message]
2015-01-09 23:39           ` Per Bothner
2015-01-10  0:06             ` Per Bothner
2015-01-10  1:13               ` Per Bothner
2015-01-16 18:24                 ` Jeff Gonis
2015-01-09 22:37       ` Per Bothner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54B05E87.1050101@bothner.com \
    --to=per@bothner.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).