EnglishFrenchSpanish

OnWorks favicon

mprompt - Online in the Cloud

Run mprompt in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command mprompt that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


mprompt - simple prompt-based control for mpd

SYNOPSIS


mpompt [-s] [-m key=key] [-t n] [-f] [tty] [-T] [host]

DESCRIPTION


mprompt is a mpd client with a prompt-based interface. It is designed to be usable on a
headless machine.

At the prompt, enter the name of a playlist, or part of the name of an album, artist, or
song. Matching items will start playing. You can also paste in urls to stream.

(If the perl String::Approx module is available, it will be used to handle typos, etc in
the names you enter.)

Use the left and right arrow keys to adjust volume, and the up and down arrow keys to move
through the playlist.

The Tab and Enter keys can both be used to pause and unpause playback. (Enter toggles
pause only if nothing has been entered at the prompt.)

Example of how to run mprompt in /etc/inittab:

1:2345:respawn:/usr/bin/mprompt /dev/tty1

OPTIONS


-s This option allows shell commands to be typed in to mprompt, to be run by whatever
user it is running as. (Typically root if it is run from /etc/inittab).

To enter a shell command, type a "!", followed by the command to run, followed by
Enter.

-m key=key
This option allows remapping keys. Any key can be remapped to any other key, which is
useful to support keyboard with unusual key layouts, or missing keys.

For alphanumeric and punctuation keys, individual symbols can be remapped. For
example, "-m a=b" will turn each entered "a" into "b".

For other keys, use the following names:

<return>
<tab>
<space>
<up>
<down>
<left>
<right>
<backspace>

For example, -m "n=<down>" will map the "n" key to the down arrow, causing that key to
change to the next track; -m "<space>=<return>" will make the space bar act as a
pause.

It's possible to swap keys too. For example, -m "<down>=<up>" -m "<up>=<down>"

A single key can also be bound to a series of keystrokes. For example, -m "1=Mule
Variations<return>" will cause the "1" key to play the "Mule Variations" album, a nice
choice.

-t n
Adds a timeout, a specified number of seconds after which the entry on the command
line will be cleared. Useful for headless systems, to avoid cat-on-keyboard confusing
your later commands.

-T Enables terse output mode. This mode tries to avoid displaying excessive or complex
things, with the intent that mprompt's output can be piped into a speech synthesiser,
such as espeak.

Use mprompt online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PostInstallerF
    PostInstallerF
    PostInstallerF will install all the
    software that Fedora Linux and others
    doesn't include by default, after
    running Fedora for the first time. Its
    easy for...
    Download PostInstallerF
  • 2
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 3
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 4
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 5
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 6
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • More »

Linux commands

Ad