From: Programmingkid <programmingkidx@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel qemu-devel <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu
Date: Thu, 12 Feb 2015 17:03:16 -0500 [thread overview]
Message-ID: <2DA64DB0-EE3A-468B-A2FB-0650DF58A2A3@gmail.com> (raw)
In-Reply-To: <CAFEAcA_B3RMCHg-qfmt_14OSexO9WWjiiE6epDqQodHojJLZSA@mail.gmail.com>
On Feb 11, 2015, at 10:39 PM, Peter Maydell wrote:
> On 24 January 2015 at 01:56, Programmingkid <programmingkidx@gmail.com> wrote:
>> This patch adds these consoles to the View menu:
>> VGA
>> QEMU Monitor
>> Parallel
>> Serial
>>
>> Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
>
>> +/* Displays the VGA screen */
>> +- (void)displayVGA:(id)sender
>> +{
>> + console_select(0);
>> +}
>> +
>> +/* Displays the QEMU Monitor screen */
>> +- (void)displayMonitor:(id)sender
>> +{
>> + console_select(1);
>> +}
>> +
>> +/* Displays the parallel port screen */
>> +- (void)displayParallel:(id)sender
>> +{
>> + console_select(3);
>> +}
>> +
>> +/* Displays the serial port screen */
>> +- (void)displaySerial:(id)sender
>> +{
>> + console_select(2);
>> +}
>
> I'm afraid this doesn't work, because there's no guarantee
> that these consoles will be created or in this order.
> They just happen to be the set you get for the x86
> PC model. If you boot a versatilepb ARM image with the
> serial output directed to stdio, for instance, then the
> "serial" entry in the menu gets you the parallel
> port console, and the parallel port entry does nothing,
> because this board and config happens to end up creating
> only 3 consoles, not 4 (graphics, monitor, parallel).
>
> We're going to need to automatically create and update
> the menu entries based on which consoles get created
> if we want this to work properly, I think. Gerd, any
> suggestions? Is there a hook for "list of active
> consoles has changed"? What's the right way to get
> the printable name of a console?
Do you know where the code is that creates the consoles?
next prev parent reply other threads:[~2015-02-12 22:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-24 1:56 [Qemu-devel] [PATCH] cocoa.m: Adds console items to the view menu Programmingkid
2015-02-12 3:39 ` Peter Maydell
2015-02-12 16:10 ` Programmingkid
2015-02-12 22:03 ` Programmingkid [this message]
2015-02-13 7:45 ` Gerd Hoffmann
2015-02-13 15:37 ` Programmingkid
2015-02-14 5:48 ` [Qemu-devel] [PATCH v2] ui/cocoa.m: Adds console items to the View menu Programmingkid
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=2DA64DB0-EE3A-468B-A2FB-0650DF58A2A3@gmail.com \
--to=programmingkidx@gmail.com \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.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 NNTP newsgroup(s).