prompt

package
v0.0.0-...-15f74bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package prompt renders DOS-style prompt strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(template, drive, dosPath string) string

Render expands DOS prompt escape sequences in template.

$P  current DOS path
$G  >
$M  machine name
$N  current drive letter
$Q  =
$S  space
$T  current time (HH:MM:SS.cc)
$U  user
$D  current date (Day MM/DD/YYYY)
$$  literal $

Unknown escape sequences are passed through unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL