Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript
469 B
Raw Blame
import type { RenderInput } from 'claude-code'

import { HINT } from './hint.js'

/**
 * The prompt's hint on a fullscreen terminal so many columns wide: drawing
 * it is how the plugin learns the width.
 *
 * @param columns the terminal's width
 * @returns the `ui.render` input
 */
export const hintAt = (columns: number): RenderInput<'PromptHint'> => ({
  ...HINT,
  viewport: {
    columns,
    rows: HINT.viewport?.rows ?? columns,
    isFullscreen: true,
  },
})