Skip to content

Commit

Permalink
feat(input): clipboard selection is just a byte
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 11, 2024
1 parent f783ba7 commit a724128
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions input/clipboard.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package input

import "github.com/charmbracelet/x/ansi"

// ClipboardSelection represents a clipboard selection. The most common
// clipboard selections are "system" and "primary" and selections.
type ClipboardSelection byte
type ClipboardSelection = byte

// Clipboard selections.
const (
SystemClipboard = ClipboardSelection('c')
PrimaryClipboard = ClipboardSelection('p')
SystemClipboard ClipboardSelection = ansi.SystemClipboard
PrimaryClipboard ClipboardSelection = ansi.PrimaryClipboard
)

// ClipboardEvent is a clipboard read message event. This message is emitted when
Expand Down

0 comments on commit a724128

Please sign in to comment.