Skip to content

Access Display Client — Input & Clipboard

Section titled “Access Display Client — Input & Clipboard”

Configure keyboard behavior, clipboard sharing formats, and scroll direction when connecting to a display client. These parameters are passed as query strings on the GET /api/v1/display/ endpoint to customize the HTML5 client experience.

Use these parameters when you need to:

  • Enable an on-screen virtual keyboard for touch-only devices
  • Match the keyboard layout to the user’s physical keyboard
  • Swap Cmd and Ctrl for cross-platform workflows
  • Control clipboard synchronization format and behavior
  • Reverse scroll direction for trackpad or natural-scrolling preferences
NameInTypeRequiredDescription
keyboardquerybooleanNoShow on-screen virtual keyboard
keyboard_layoutquerystringNoKeyboard layout (us, gb, fr, de, etc.)
swap_keysquerybooleanNoSwap Cmd/Ctrl keys (useful for macOS)
clipboardquerybooleanNoEnable clipboard sharing
clipboard_preferred_formatquerystringNoPreferred clipboard format
scroll_reverse_yquerystringNoReverse vertical scrolling direction (auto, true, false)
scroll_reverse_xquerybooleanNoReverse horizontal scrolling direction

Serves the HTML5 Display client web interface with optional URL-based configuration. This versioned endpoint accepts the same query parameters as the root endpoint for full client customization.

NameInTypeRequiredDefaultDescription
keyboardquerybooleanNofalseShow on-screen virtual keyboard
keyboard_layoutquerystringNo"us"Keyboard layout (e.g., us, gb, fr, de)
swap_keysquerybooleanNofalseSwap Cmd/Ctrl keys (useful for macOS)
clipboardquerybooleanNotrueEnable clipboard sharing
clipboard_preferred_formatquerystringNo"text/plain"Preferred clipboard format. One of text/plain, text/html, UTF8_STRING
scroll_reverse_yquerystringNo"auto"Reverse vertical scrolling direction. One of auto, true, false
scroll_reverse_xquerybooleanNofalseReverse horizontal scrolling direction
{
"description": "HTML5 Display client interface loaded successfully"
}

The endpoint returns an text/html response containing the HTML5 Display client interface.

<!DOCTYPE html>
<html>
<head><title>Hoody Display Client</title></head>
<body>
<!-- Display HTML5 client interface -->
</body>
</html>
const client = new HoodyClient(config);
// Access the display client with input and clipboard configuration
await client.display.accessClient({
keyboard: true,
keyboard_layout: "fr",
swap_keys: true,
clipboard: true,
clipboard_preferred_format: "text/html",
scroll_reverse_y: "false",
scroll_reverse_x: false
});
Terminal window
curl -G "https://domain.com/api/v1/display/" \
--data-urlencode "keyboard=true" \
--data-urlencode "keyboard_layout=de" \
--data-urlencode "swap_keys=true" \
--data-urlencode "clipboard=true" \
--data-urlencode "clipboard_preferred_format=text/html" \
--data-urlencode "scroll_reverse_y=false" \
--data-urlencode "scroll_reverse_x=false"